/* ==========================================================================
   KOROTKOV MODERN EDITORIAL BLOG SYSTEM (ARTICLES & MAGAZINE)
   ========================================================================== */

/* --- Single Article Page Layout --- */
.kk-article-page {
  padding-top: 24px;
  padding-bottom: 70px;
}

.kk-article-breadcrumbs {
  margin-bottom: 24px;
}

.kk-article-breadcrumbs .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: #6d8277;
}

.kk-article-breadcrumbs .breadcrumb li + li:before {
  content: "›";
  color: #9ab0a4;
  padding: 0 8px;
}

.kk-article-breadcrumbs .breadcrumb a {
  color: #385549;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kk-article-breadcrumbs .breadcrumb a:hover {
  color: #17483b;
}

/* Two Column Layout on Desktop */
.kk-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1080px) {
  .kk-article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .kk-article-layout {
    display: block;
  }
}

/* Main Article Column */
.kk-article-main {
  min-width: 0;
}

.kk-article__header {
  margin-bottom: 28px;
}

.kk-article-tag {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e9f4ee;
  color: #176547;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kk-article__title {
  margin: 0 0 16px;
  color: #0f2e24;
  font-family: inherit;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.kk-article__meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #557064;
  font-size: 13px;
}

.kk-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 8px;
  background: #f1f6f3;
  color: #3b574a;
  font-weight: 600;
}

.kk-meta-pill i {
  color: #25a16d;
}

/* Stretched Rectangular Cover Banner */
.kk-article__banner {
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(18, 48, 38, 0.12);
  background: #e8eee9;
}

.kk-article__banner img {
  display: block;
  width: 100%;
  height: clamp(260px, 36vw, 460px);
  object-fit: cover;
  object-position: center;
}

/* Important Notice Alert */
.kk-article-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 34px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #f2f7f4;
  border: 1px solid #dbe8e0;
  color: #2e473c;
  font-size: 13.5px;
  line-height: 1.6;
}

.kk-article-notice i {
  color: #25a16d;
  font-size: 20px;
  margin-top: 1px;
}

/* Prose & Typography: Clean, Modern, Readable */
.kk-prose {
  font-size: 17px;
  line-height: 1.8;
  color: #263c32;
  font-family: inherit;
}

.kk-prose p {
  margin: 0 0 22px;
}

.kk-prose h2 {
  margin: 40px 0 18px;
  color: #0f2e24;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.kk-prose h3 {
  margin: 32px 0 14px;
  color: #164335;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.3;
}

.kk-prose ul, .kk-prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.kk-prose li {
  margin-bottom: 8px;
}

.kk-prose strong, .kk-prose b {
  font-weight: 700;
  color: #12382c;
}

.kk-prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid #25a16d;
  border-radius: 0 14px 14px 0;
  background: #f4f8f5;
  color: #1f3d30;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

/* Tags */
.kk-article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid #e1ebe5;
  font-size: 13px;
  color: #557064;
}

.kk-tag-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f6f3;
  color: #1e4738;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}

.kk-tag-pill:hover {
  background: #25a16d;
  color: #ffffff;
}

/* Comments Section */
.kk-comments-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid #e5ede8;
}

.kk-comments-header {
  margin-bottom: 24px;
}

.kk-comments-header h2 {
  margin: 0 0 6px;
  color: #0f2e24;
  font-size: 24px;
  font-weight: 800;
}

.kk-comments-header h2 i {
  color: #25a16d;
  margin-right: 6px;
}

.kk-comments-header p {
  margin: 0;
  color: #557064;
  font-size: 14px;
}

.kk-comments-list {
  margin-bottom: 32px;
}

.kk-comments-list:empty::before {
  content: "Комментариев пока нет. Будьте первыми, кто оставит свой отзыв или задаст вопрос!";
  display: block;
  padding: 18px 22px;
  border-radius: 12px;
  background: #f6faf7;
  color: #4f6b5f;
  font-size: 14px;
  border: 1px dashed #cde0d5;
}

/* Comment Form Card */
.kk-comment-form-card {
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(21, 61, 50, 0.1);
  box-shadow: 0 12px 34px rgba(18, 48, 38, 0.06);
}

.kk-comment-form-card h3 {
  margin: 0 0 6px;
  color: #0f2e24;
  font-size: 20px;
  font-weight: 800;
}

.kk-comment-form-sub {
  margin: 0 0 20px;
  color: #5d786c;
  font-size: 13.5px;
}

.kk-comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .kk-comment-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.kk-comment-form label {
  display: block;
  margin-bottom: 6px;
  color: #174234;
  font-size: 13px;
  font-weight: 700;
}

.kk-comment-form label i {
  color: #25a16d;
  margin-right: 4px;
}

.kk-input, .kk-textarea {
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid #cfe0d6 !important;
  background: #fafcfb !important;
  padding: 12px 16px !important;
  color: #142f28 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kk-input:focus, .kk-textarea:focus {
  border-color: #25a16d !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 161, 109, 0.15) !important;
  outline: none !important;
}

.kk-rating-select {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
}

.kk-rating-select label {
  cursor: pointer;
  color: #e59e19;
  font-size: 14px;
  font-weight: 600;
}

.kk-btn-comment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #25a16d 0%, #15734c 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(37, 161, 109, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kk-btn-comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 161, 109, 0.5);
}

/* --- Right Sticky Sidebar --- */
.kk-article-sidebar {
  min-width: 0;
}

.kk-sidebar-sticky {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kk-sidebar-block {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(21, 61, 50, 0.09);
  box-shadow: 0 10px 30px rgba(18, 48, 38, 0.05);
}

.kk-sidebar-title {
  margin: 0 0 18px;
  color: #0f2e24;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kk-sidebar-title i {
  color: #25a16d;
  margin-right: 6px;
}

.kk-sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kk-sidebar-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.kk-sidebar-card__media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: #e8eee9;
}

.kk-sidebar-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.kk-sidebar-card:hover .kk-sidebar-card__media img {
  transform: scale(1.06);
}

.kk-sidebar-card__info {
  min-width: 0;
}

.kk-sidebar-card__date {
  display: block;
  margin-bottom: 4px;
  color: #7b968a;
  font-size: 11px;
  font-weight: 600;
}

.kk-sidebar-card__date i {
  color: #25a16d;
  margin-right: 3px;
}

.kk-sidebar-card__info h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.35;
}

.kk-sidebar-card__info h4 a {
  color: #14362b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kk-sidebar-card__info h4 a:hover {
  color: #25a16d;
}

/* Sidebar Consultation Banner */
.kk-sidebar-cta {
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #133d31 0%, #0d2a21 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 42, 33, 0.25);
  text-align: center;
}

.kk-sidebar-cta__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(37, 161, 109, 0.2);
  display: grid;
  place-items: center;
  color: #34d399;
  font-size: 22px;
}

.kk-sidebar-cta h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.kk-sidebar-cta p {
  margin: 0 0 18px;
  color: #b3cec2;
  font-size: 13px;
  line-height: 1.5;
}

.kk-sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25a16d;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(37, 161, 109, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.kk-sidebar-cta__btn:hover {
  background: #2bc283;
  transform: translateY(-2px);
}

/* --- Bottom Recommended Products Section --- */
.kk-article-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e5ede8;
}

.kk-article-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.kk-article-products__head h2 {
  margin: 4px 0 0;
  color: #0f2e24;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.kk-article-products__link {
  color: #17483b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid #b8c8bf;
  padding-bottom: 3px;
}

.kk-article-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 991px) {
  .kk-article-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kk-article-products__grid {
    grid-template-columns: 1fr;
  }
}

.kk-article-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(21, 61, 50, 0.09);
  box-shadow: 0 10px 28px rgba(18, 48, 38, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kk-article-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 48, 38, 0.1);
}

.kk-article-product-card__image {
  display: block;
  aspect-ratio: 1;
  padding: 16px;
  background: #f8faf9;
  text-align: center;
}

.kk-article-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.kk-article-product-card:hover .kk-article-product-card__image img {
  transform: scale(1.05);
}

.kk-article-product-card__body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  flex: 1;
}

.kk-article-product-card__body h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  min-height: 40px;
}

.kk-article-product-card__body h4 a {
  color: #12382c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kk-article-product-card__body h4 a:hover {
  color: #25a16d;
}

.kk-article-product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.kk-article-product-card__price {
  color: #0f2e24;
  font-size: 17px;
  font-weight: 850;
}

.kk-article-product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: #17483b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kk-article-product-card__btn:hover {
  background: #25a16d;
  transform: translateY(-1px);
}


/* --- Homepage Magazine Section Upgrade --- */
.kk-section--articles .kk-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 991px) {
  .kk-section--articles .kk-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .kk-section--articles .kk-article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.kk-section--articles .kk-article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(21, 61, 50, 0.08);
  box-shadow: 0 10px 28px rgba(18, 48, 38, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kk-section--articles .kk-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(18, 48, 38, 0.12);
}

.kk-section--articles .kk-article-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #e6ede8;
}

.kk-section--articles .kk-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.kk-section--articles .kk-article-card:hover .kk-article-card__image img {
  transform: scale(1.05);
}

.kk-article-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(14, 38, 29, 0.85);
  backdrop-filter: blur(6px);
  color: #a8dfb6;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kk-section--articles .kk-article-card__body {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  flex: 1;
}

.kk-article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #6a8578;
  font-size: 12px;
  font-weight: 600;
}

.kk-article-card__meta i {
  color: #25a16d;
}

.kk-section--articles .kk-article-card h3 {
  margin: 0 0 12px;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.kk-section--articles .kk-article-card h3 a {
  color: #0f2e24;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kk-section--articles .kk-article-card h3 a:hover {
  color: #25a16d;
}

.kk-section--articles .kk-article-card p {
  margin: 0 0 18px;
  color: #4a6659;
  font-size: 14px;
  line-height: 1.55;
}

.kk-section--articles .kk-article-card .kk-inline-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17483b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kk-section--articles .kk-article-card:hover .kk-inline-link {
  color: #25a16d;
}

.kk-section--articles .kk-article-card:hover .kk-inline-link i {
  transform: translateX(4px);
}
