/**
 * Kosmo Dom — единый CSS описаний карточек товаров
 * Namespace: .kd-product
 * Палитра сверена с живым сайтом kosmo-dom.ru:
 *   --kd-blue #2FACFF (приоритетный светло-голубой акцент карточек)
 *   --kd-blue-dark #1B98EB (hover)
 *   нейтрали из .product-card / .kd-pdp-stock
 */

.kd-product {
  /* Brand */
  --accent: #2FACFF;       /* приоритетный светло-голубой сайта */
  --accent-dark: #1B98EB;  /* hover / secondary CTA */
  --primary: #1B98EB;
  --primary2: #4A90E2;
  --navy: #1A2128;         /* тёмный текст/заголовки (не фон блоков) */

  /* Neutrals */
  --ink: #1A2128;
  --muted: #5A6570;
  --line: #D9E8F5;
  --bg: #F4F9FD;
  --bg-soft: #E8F5FF;      /* светло-голубая подложка */
  --surface: #F7FBFF;
  --white: #fff;
  --on-accent: #0A3A5C;

  --r: 16px;
  --r2: 22px;
  --sh: 0 6px 24px rgba(47, 172, 255, 0.1);
  --sh2: 0 14px 38px rgba(47, 172, 255, 0.14);
  --sh3: 0 20px 50px rgba(26, 33, 40, 0.12);
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 88px;
  scroll-behavior: smooth;
}

.kd-product * {
  box-sizing: border-box;
}

.kd-product h2,
.kd-product h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

.kd-product p {
  margin: 0 0 14px;
  color: var(--muted);
}

.kd-product a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 152, 235, 0.28);
  transition: color 0.2s, border-color 0.2s;
}

.kd-product a:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.kd-product section {
  padding: 44px 20px;
  scroll-margin-top: 72px;
}

.kd-product .lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 920px;
}

.kd-product .lead b,
.kd-product .chk b {
  color: var(--ink);
  font-weight: 600;
}

/* Контраст на светлом hero: текст тёмный, акценты — фирменный голубой */
.kd-product .stage__copy .lead {
  color: var(--muted) !important;
}

.kd-product .stage__copy .lead b,
.kd-product .stage .lead b {
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.kd-product .h-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px;
}

.kd-product .h-wrap h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.kd-product .h-wrap .desc {
  color: var(--muted);
  margin: 0;
}

/* —— Sticky in-page nav —— */
.kd-product .toc {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  margin: 0 12px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
  scrollbar-width: none;
}

.kd-product .toc::-webkit-scrollbar {
  display: none;
}

.kd-product .toc a {
  flex-shrink: 0;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.kd-product .toc a:hover {
  color: var(--navy);
  background: var(--bg);
  border: none;
}

/* —— Hero stage: светлый голубой блок (без тёмных подложек) —— */
.kd-product .stage {
  position: relative;
  margin: 8px 16px 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(47, 172, 255, 0.28);
  background: linear-gradient(165deg, #e8f5ff 0%, #f3faff 42%, #ffffff 100%);
  box-shadow: var(--sh2);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 0;
  aspect-ratio: auto;
}

.kd-product .stage__visual,
.kd-product .stage__copy {
  grid-area: auto;
}

.kd-product .stage__copy {
  position: relative;
  z-index: 2;
  order: 1;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  max-width: none;
  background: transparent;
}

.kd-product .stage__copy .tag {
  color: var(--accent-dark);
  background: rgba(47, 172, 255, 0.14);
  border: 1px solid rgba(47, 172, 255, 0.28);
}

.kd-product .stage__copy h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 18ch;
}

.kd-product .stage__copy .lead {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 42ch;
}

.kd-product .stage__visual {
  position: relative;
  order: 2;
  min-height: 0;
  height: auto;
  z-index: 1;
  margin: 14px 14px 14px 0;
  padding: 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 172, 255, 0.18);
  background: #eef7ff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.kd-product .stage__visual img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #eef7ff;
  display: block;
  flex: 0 0 auto;
}

.kd-product .stage__visual::after {
  content: none;
}

.kd-product .stage__badges {
  position: static;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px 4px;
}

.kd-product .float-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 172, 255, 0.22);
  box-shadow: var(--sh);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.kd-product .float-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(47, 172, 255, 0.55);
  animation: kd-pulse 2.2s ease-out infinite;
}

@keyframes kd-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 172, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(47, 172, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 172, 255, 0);
  }
}

.kd-product .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(47, 172, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

.kd-product .tag svg {
  width: 15px;
  height: 15px;
}

/* —— Stats strip —— */
.kd-product .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 16px 0;
}

.kd-product .stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--sh);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kd-product .stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}

.kd-product .stat b {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kd-product .stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 7px;
}

/* —— Bento (21st Feature Bento pattern) —— */
.kd-product .bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
}

.kd-product .bento__item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--sh);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.kd-product .bento__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}

.kd-product .bento__item--hero {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 340px;
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(47, 172, 255, 0.22);
  background: linear-gradient(165deg, #e8f5ff 0%, #f7fbff 55%, #fff 100%);
}

.kd-product .bento__item--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.7s ease;
}

.kd-product .bento__item--hero:hover img {
  transform: scale(1.04);
}

.kd-product .bento__item--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232, 245, 255, 0.15) 10%, rgba(247, 251, 255, 0.88) 72%, #fff 100%);
}

.kd-product .bento__item--hero .bento__body {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.kd-product .bento__item--hero h3 {
  color: var(--ink);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.kd-product .bento__item--hero p {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.kd-product .bento__item--sm {
  grid-column: span 2;
}

.kd-product .bento__item--wide {
  grid-column: span 3;
}

.kd-product .bento__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.kd-product .bento__item--hero .bento__kicker {
  color: var(--accent-dark);
}

.kd-product .bento__item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.kd-product .bento__item p {
  margin: 0;
  font-size: 0.9rem;
}

.kd-product .bento__metric {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.kd-product .bento__item--accent {
  background: linear-gradient(145deg, #dff1ff 0%, #c8e7ff 100%);
  border: 1px solid rgba(47, 172, 255, 0.35);
  color: var(--ink);
  box-shadow: none;
}

.kd-product .bento__item--accent h3,
.kd-product .bento__item--accent .bento__metric {
  color: var(--accent-dark);
}

.kd-product .bento__item--accent p,
.kd-product .bento__item--accent .bento__kicker {
  color: var(--muted);
}

/* —— Segmented tabs (CSS-only, 21st Segmented Control pattern) —— */
.kd-product .tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kd-product .tabs__nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 480px;
  margin: 0 auto 22px;
}

.kd-product .tabs__nav label {
  flex: 1;
  text-align: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.kd-product .tabs__nav label:hover {
  color: var(--navy);
}

.kd-product .tabs__panel {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--sh);
  animation: kd-fade 0.28s ease;
}

@keyframes kd-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* K10 legacy IDs + generic 3-tab (3 radios + nav + 3 panels) */
.kd-product .tabs:has(#kd-tab-bbl:checked) .tabs__nav label[for="kd-tab-bbl"],
.kd-product .tabs:has(#kd-tab-nir:checked) .tabs__nav label[for="kd-tab-nir"],
.kd-product .tabs:has(#kd-tab-yag:checked) .tabs__nav label[for="kd-tab-yag"],
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(1):checked) > .tabs__nav > label:nth-child(1),
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(2):checked) > .tabs__nav > label:nth-child(2),
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(3):checked) > .tabs__nav > label:nth-child(3) {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--sh);
}

.kd-product .tabs:has(#kd-tab-bbl:checked) .tabs__panel--bbl,
.kd-product .tabs:has(#kd-tab-nir:checked) .tabs__panel--nir,
.kd-product .tabs:has(#kd-tab-yag:checked) .tabs__panel--yag,
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(1):checked) > .tabs__panel:nth-child(5),
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(2):checked) > .tabs__panel:nth-child(6),
.kd-product .tabs:has(> input[type="radio"]:nth-of-type(3):checked) > .tabs__panel:nth-child(7) {
  display: grid;
}

.kd-product .tabs__visual {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 240px;
}

.kd-product .tabs__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.kd-product .module__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(47, 172, 255, 0.12);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.kd-product .tabs__panel h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.kd-product .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.kd-product .chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.kd-product .mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.kd-product .mini-table th,
.kd-product .mini-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.kd-product .mini-table th {
  color: var(--navy);
  font-weight: 600;
  width: 28%;
}

.kd-product .mini-table tr:last-child td,
.kd-product .mini-table tr:last-child th {
  border-bottom: none;
}

/* —— ROI strip —— */
.kd-product .roi {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 12px;
  margin: 0 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(47, 172, 255, 0.14), rgba(27, 152, 235, 0.08));
  border: 1px solid var(--line);
}

.kd-product .roi__lead h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.kd-product .roi__lead p {
  margin: 0;
  font-size: 0.9rem;
}

.kd-product .roi__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--sh);
}

.kd-product .roi__card b {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.kd-product .roi__card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Checks / features —— */
.kd-product .checks {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.kd-product .chk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--sh);
  transition: border-color 0.2s, transform 0.2s;
}

.kd-product .chk:hover {
  border-color: rgba(47, 172, 255, 0.45);
  transform: translateX(2px);
}

.kd-product .chk svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.kd-product .chk span {
  color: var(--muted);
  font-size: 0.95rem;
}

.kd-product .grid {
  display: grid;
  gap: 14px;
}

.kd-product .g2 {
  grid-template-columns: repeat(2, 1fr);
}

.kd-product .g4 {
  grid-template-columns: repeat(4, 1fr);
}

.kd-product .feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px;
  box-shadow: var(--sh);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kd-product .feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}

.kd-product .feature .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(47, 172, 255, 0.12);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.kd-product .feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.kd-product .feature p {
  margin: 0;
  font-size: 0.9rem;
}

/* —— Procedure cloud —— */
.kd-product .cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto 26px;
}

.kd-product .cloud span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: var(--sh);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.kd-product .cloud span:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* —— Gallery / BA —— */
.kd-product .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.kd-product .shot,
.kd-product .ba {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--sh);
  position: relative;
}

.kd-product .shot img,
.kd-product .ba img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.kd-product .shot:hover img,
.kd-product .ba:hover img {
  transform: scale(1.03);
}

.kd-product .shot figcaption,
.kd-product .ba figcaption {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.kd-product .ba__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 172, 255, 0.35);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 8px;
}

.kd-product .media {
  margin: 8px 20px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--sh);
}

.kd-product .media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.kd-product .media figcaption {
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* —— Specs / audience —— */
.kd-product .band {
  background: var(--bg);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.kd-product .tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}

.kd-product table.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}

.kd-product table.specs th,
.kd-product table.specs td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.kd-product table.specs thead th {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 600;
}

.kd-product table.specs tbody tr:nth-child(even) {
  background: #f8fbfe;
}

.kd-product table.specs tbody tr:last-child td {
  border-bottom: none;
}

.kd-product table.specs td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 38%;
}

.kd-product .audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.kd-product .aud {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--sh);
  font-size: 0.94rem;
  color: var(--muted);
  transition: border-color 0.2s, transform 0.2s;
}

.kd-product .aud:hover {
  border-color: rgba(27, 152, 235, 0.35);
  transform: translateY(-2px);
}

.kd-product .aud b {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 0.98rem;
}

/* —— Close —— */
.kd-product .close {
  background: linear-gradient(135deg, #e8f5ff 0%, #d4eeff 55%, #c5e8ff 100%);
  border: 1px solid rgba(47, 172, 255, 0.3);
  border-radius: 24px;
  padding: 36px 28px;
  color: var(--ink);
}

.kd-product .close h2 {
  color: var(--ink);
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.kd-product .close p {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

/* —— Sticky CTA bar —— */
.kd-product .cta-bar {
  position: sticky;
  bottom: 12px;
  z-index: 50;
  margin: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 172, 255, 0.32);
  box-shadow: var(--sh3);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.kd-product .cta-bar__text {
  font-size: 0.9rem;
  color: var(--muted);
}

.kd-product .cta-bar__text b {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.kd-product .cta-bar__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.kd-product .cta-bar__btn:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  color: #fff;
  border: none;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .kd-product .stage {
    grid-template-columns: 1fr;
    min-height: 0;
    aspect-ratio: auto;
  }

  .kd-product .stage__visual {
    order: 1;
    min-height: 0;
    height: auto;
    grid-area: auto;
    margin: 12px 12px 0;
    padding: 8px;
  }

  .kd-product .stage__visual img {
    max-height: none;
  }

  .kd-product .stage__copy {
    order: 2;
    grid-area: auto;
    max-width: none;
    padding: 22px 20px 26px;
    background: transparent;
  }

  .kd-product .stage__visual::after {
    content: none;
  }

  .kd-product .bento {
    grid-template-columns: 1fr 1fr;
  }

  .kd-product .bento__item--hero,
  .kd-product .bento__item--sm,
  .kd-product .bento__item--wide {
    grid-column: span 2;
    grid-row: auto;
  }

  .kd-product .bento__item--sm {
    grid-column: span 1;
  }

  .kd-product .tabs__panel {
    grid-template-columns: 1fr;
  }

  .kd-product .roi {
    grid-template-columns: 1fr 1fr;
  }

  .kd-product .roi__lead {
    grid-column: 1 / -1;
  }

  .kd-product .stats,
  .kd-product .g2,
  .kd-product .g4,
  .kd-product .gallery,
  .kd-product .audience {
    grid-template-columns: 1fr;
  }

  .kd-product .g4 {
    grid-template-columns: 1fr 1fr;
  }

  .kd-product .h-wrap h2 {
    font-size: 1.35rem;
  }

  .kd-product section {
    padding: 34px 14px;
  }

  /* На планшете/мобиле CTA не sticky — не конфликтует с «купить в 1 клик» */
  .kd-product .cta-bar {
    position: static;
    margin: 16px 14px 8px;
  }

  .kd-product .shot img,
  .kd-product .ba img {
    height: 190px;
  }
}

@media (max-width: 560px) {
  .kd-product {
    padding-bottom: 24px;
  }

  .kd-product .stats,
  .kd-product .g4,
  .kd-product .bento,
  .kd-product .roi {
    grid-template-columns: 1fr;
  }

  .kd-product .bento {
    gap: 10px;
  }

  .kd-product .bento__item,
  .kd-product .bento__item--sm,
  .kd-product .bento__item--wide,
  .kd-product .bento__item--hero {
    grid-column: 1 / -1;
    min-height: 0;
    transform: none !important;
  }

  .kd-product .bento__item:hover {
    transform: none;
    box-shadow: var(--sh);
  }

  .kd-product .bento__item--accent:hover {
    box-shadow: none;
  }

  /* Убираем «рамку» секции, из‑за которой фон визуально вылезает из карточки */
  .kd-product .band {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .kd-product section {
    padding: 28px 12px;
  }

  /* На мобиле CTA не прилипает — обычный блок в конце описания */
  .kd-product .cta-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 16px 12px 8px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
    border-radius: 16px;
    z-index: auto;
    box-shadow: var(--sh);
  }

  .kd-product .cta-bar__text {
    display: block;
    font-size: 0.84rem;
  }

  .kd-product .cta-bar__text b {
    font-size: 0.92rem;
  }

  .kd-product .cta-bar__btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.92rem;
    border-radius: 12px;
  }

  .kd-product .stage__badges {
    position: static;
    left: auto;
    right: auto;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kd-product *,
  .kd-product .float-badge .dot {
    animation: none !important;
    transition: none !important;
  }
}
