/* ===== KK ARTICLE SINGLE PAGE ===== */
body.single-kk-article{ overflow-x:hidden !important; }

body.single-kk-article .site,
body.single-kk-article .site-content,
body.single-kk-article .content-area,
body.single-kk-article .site-main{
  margin:0 !important;
  padding:0 !important;
  max-width:100% !important;
  width:100% !important;
}

.kk-article-page{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.65;
  color:#0f172a;
  width:100%;
  overflow-x:hidden;
  margin-top:0 !important;
  padding-top:0 !important;
}

.kk-hero{
  position:relative;
  min-height: 55vh;
  overflow:hidden;
  background: linear-gradient(135deg,#8B5CF6 0%,#6D28D9 100%);
  width:100%;
  margin:0 !important;
  padding:0 !important;
  border:none !important;
}

/* Световые блики (highlights) */
.kk-hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index: 2;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(900px 400px at 85% 0%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 60%);
  pointer-events:none;
}

/* Цветовой фильтр (color overlay) — СДЕЛАН БОЛЕЕ ПРОЗРАЧНЫМ, чтобы картинка была ярче */
.kk-hero::after{
  content:'';
  position:absolute;
  inset:0;
  z-index: 3;
  pointer-events:none;

  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.10) 0%,
      rgba(76,29,149,0.14) 45%,
      rgba(139,92,246,0.12) 100%
    );
}

.kk-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity: .62;
  filter: saturate(1.10) contrast(1.05);
  margin:0;
  padding:0;
  z-index: 1;
}

.kk-hero-inner{
  position:relative;
  z-index:4;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding: 54px 40px 34px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:55vh;
  box-sizing:border-box;
}
.kk-hero-title{
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 900;
  margin:0 0 18px;
  line-height:1.08;
  letter-spacing:-0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.kk-hero-meta{
  display:flex;
  align-items:center;
  gap:14px;
  font-size: 15px;
  opacity:.92;
  margin-top:auto;
}
.kk-hero-meta::before{
  content:'';
  width: 44px;
  height: 3px;
  background:#fff;
  border-radius:999px;
}

.kk-body-wrap{
  max-width: 1400px;
  margin: -44px auto 64px;
  padding: 0 40px;
  position:relative;
  z-index:3;
  width:100%;
  box-sizing:border-box;
}

.kk-card{
  background:#fff;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15,23,42,.16);
  overflow:hidden;
  width:100%;
  border: 1px solid rgba(148,163,184,.35);
}
.kk-card-inner{
  padding: 58px;
  box-sizing:border-box;
}

.kk-article-layout{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap: 46px;
  align-items:flex-start;
}
.kk-main-content{
  display:flex;
  flex-direction:column;
  gap: 56px;
  min-width:0;
}

.kk-intro{
  font-size: 17px;
  color:#334155;
  line-height:1.85;
}
.kk-intro p{ margin: 0 0 18px; }
.kk-intro p:last-child{ margin:0; }

.kk-blocks{
  display:flex;
  flex-direction:column;
  gap: 34px;
}
.kk-block{
  display:flex;
  gap: 36px;
  align-items:flex-start;
  padding: 36px;
  background: linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow:hidden;
  box-sizing:border-box;
}
.kk-block:hover{
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 16px 44px rgba(15,23,42,.12);
}
.kk-block:nth-child(even){ flex-direction: row-reverse; }

.kk-block-media-container{
  flex: 0 0 300px;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 14px 36px rgba(15,23,42,.14);
  background:#fff;
  min-height: 200px;
  max-height: 250px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.kk-block-media{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
  padding: 10px;
}

.kk-block-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.kk-block-h{
  font-size: 24px;
  font-weight: 900;
  margin:0;
  color:#0f172a;
  line-height:1.25;
  position:relative;
  padding-left: 26px;
}
.kk-block-h::before{
  content:'';
  position:absolute;
  left: 10px;
  top: .45em;
  width: 5px;
  height: .95em;
  background: linear-gradient(135deg,#8B5CF6 0%,#6D28D9 100%);
  border-radius:999px;
}
.kk-block-text{
  font-size: 15.5px;
  line-height: 1.75;
  color:#334155;
}
.kk-block-text p{ margin:0 0 14px; }
.kk-block-text p:last-child{ margin:0; }

.kk-section-title{
  font-size: 30px;
  font-weight: 950;
  margin: 0 0 24px;
  color:#0f172a;
  position:relative;
  padding-left: 26px;
}
.kk-section-title::before{
  content:'';
  position:absolute;
  left: 10px;
  top: .35em;
  width: 6px;
  height: .95em;
  background: linear-gradient(135deg,#8B5CF6 0%,#6D28D9 100%);
  border-radius:999px;
}

/* ===== FIX (1.9.7): remove purple bar only for "Products from this article" title ===== */
.kk-section-title--no-bar{
  padding-left: 0 !important;
}
.kk-section-title--no-bar::before{
  content: none !important;
  display: none !important;
}

/* Products */
.kk-prod-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.kk-prod-card{
  background:#fff;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(148,163,184,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kk-prod-card:hover{
  transform: translateY(-6px);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 18px 52px rgba(15,23,42,.14);
}
.kk-prod-thumb{
  width:100%;
  height: 200px;
  object-fit: cover;
  display:block;
  background: linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);
}
.kk-prod-body{ padding: 18px; }
.kk-prod-title{
  font-size: 15px;
  font-weight: 850;
  margin: 0 0 10px;
  color:#0f172a;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 42px;
}
.kk-prod-price{
  font-size: 18px;
  font-weight: 950;
  color:#6D28D9;
  margin: 0 0 16px;
}
.kk-prod-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding: 13px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(135deg,#000 0%,#4C1D95 100%);
  color:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kk-prod-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(76,29,149,.35); }

/* Sidebar */
.kk-sidebar{
  position: sticky;
  top: 40px;
  height: fit-content;
}
.kk-sidebar .kk-section-title{
  font-size: 22px;
  margin: 0 0 18px;
  padding-left: 20px;
}
.kk-sidebar .kk-section-title::before{
  left: 8px;
  width: 5px;
  height: .95em;
}
.kk-rel-grid{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.kk-rel-card{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 18px;
  background:#fff;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align:center;
}
.kk-rel-card:hover{
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 16px 44px rgba(15,23,42,.12);
}
.kk-rel-thumb{
  width:100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}
.kk-rel-title{
  font-size: 14.5px;
  font-weight: 900;
  margin: 0;
  color:#0f172a;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.kk-rel-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  font-size: 13.5px;
  background: linear-gradient(135deg,#000 0%,#4C1D95 100%);
  color:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kk-rel-btn::after{ content:'→'; }
.kk-rel-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(76,29,149,.35); }

body.single-kk-article .entry-header,
body.single-kk-article .entry-content,
body.single-kk-article .entry-footer,
body.single-kk-article .post-navigation,
body.single-kk-article .comments-area{ display:none !important; }

@media (max-width: 1100px){
  .kk-article-layout{ grid-template-columns: 1fr; }
  .kk-sidebar{ position: static; }
}
@media (max-width: 768px){
  .kk-hero-inner{ padding: 46px 18px 28px; }
  .kk-body-wrap{ padding: 0 14px; }
  .kk-card-inner{ padding: 28px 18px; }
  .kk-block{ padding: 20px; gap: 18px; flex-direction: column !important; }
  .kk-block-media-container{ width:100%; flex: 0 0 auto; }
}
