.smd-kf-mod {
  --paper: #eeeef5;
  --surface: #f7f7fc;
  --surface-2: #e3e5f3;
  --ink: #17181e;
  --ink-soft: #434656;
  --muted: #6e7185;
  --line: #cfd2e3;
  --blue: #2444ed;
  --blue-bright: #5e7bff;
  --blue-glow: rgba(36, 68, 237, 0.25);
  --red: #f53643;
  --lime: #dfef9c;
  --cyan: #7be3f8;
  --dark: #101116;
  --dark-2: #171a26;
  --dark-line: rgba(255, 255, 255, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  padding: clamp(36px, 4.5vw, 64px) clamp(20px, 4vw, 60px);
  background: var(--paper);
  color: var(--ink);
  font: 450 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  overflow-x: clip;
}

.smd-kf-mod *, .smd-kf-mod *::before, .smd-kf-mod *::after {
  box-sizing: border-box;
}

.smd-kf-mod__shell {
  max-width: 1340px;
  margin: 0 auto;
}

.smd-kf-mod h2, .smd-kf-mod h3, .smd-kf-mod h4, .smd-kf-mod p {
  margin: 0;
}

.smd-kf-mod h2, .smd-kf-mod h3, .smd-kf-mod h4 {
  font-weight: 550;
  letter-spacing: -0.046em;
  line-height: 1.09;
}

.smd-kf-mod button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.smd-kf-mod a {
  color: inherit;
}

.smd-kf-mod :is(button, a):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.smd-kf-mod .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.smd-kf-mod .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.smd-kf-mod__head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(18px, 3.5vw, 48px);
  align-items: end;
  margin-bottom: 28px;
}

.smd-kf-mod__head h2 {
  font-size: clamp(28px, 3.4vw, 48px);
}

.smd-kf-mod__head p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 56ch;
}

/* ================= №01. X-RAY BLUEPRINT LENS (SSR-SAFE) ================= */
.smd-kf-mod .xray-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(23, 24, 30, 0.06);
}

.smd-kf-mod[data-kf-enhanced="1"] .xray-stage {
  cursor: crosshair;
  user-select: none;
}

.smd-kf-mod .xray-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.smd-kf-mod:not([data-kf-enhanced="1"]) .xray-toolbar,
.smd-kf-mod:not([data-kf-enhanced="1"]) .xray-ring {
  display: none;
}

.smd-kf-mod .xray-pill {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(16, 17, 22, 0.86);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.smd-kf-mod .xray-pill.is-active {
  background: var(--blue);
}

.smd-kf-mod .xray-layer {
  padding: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 36px);
}

.smd-kf-mod .xray-col h3 {
  font-size: 22px;
  margin: 10px 0 12px;
}

.smd-kf-mod .xray-col p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.smd-kf-mod .xray-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Without JS: second layer sits right below as an open dark spec band! */
.smd-kf-mod .xray-layer--code {
  background: linear-gradient(135deg, #0b0d16, #131933);
  color: #edf1ff;
  border-top: 1px solid var(--dark-line);
}

/* With JS: becomes optical X-ray overlay revealed by cursor lens */
.smd-kf-mod[data-kf-enhanced="1"] .xray-layer--code {
  position: absolute;
  inset: 0;
  border-top: 0;
  background:
    radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), rgba(36, 68, 237, 0.36), transparent 36%),
    linear-gradient(135deg, #0b0d16, #131933);
  clip-path: circle(var(--lrad, 0px) at var(--lx, 50%) var(--ly, 50%));
  transition: clip-path 0.08s linear;
  pointer-events: none;
}

.smd-kf-mod[data-kf-enhanced="1"] .xray-stage.is-full-xray .xray-layer--code {
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.55s var(--spring);
}

.smd-kf-mod .xray-layer--code .xray-tag {
  color: var(--lime);
}

.smd-kf-mod .xray-layer--code p {
  color: #b7c3ec;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 153, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.smd-kf-mod .xray-ring {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 227, 248, 0.8);
  box-shadow: 0 0 40px rgba(36, 68, 237, 0.45), inset 0 0 24px rgba(123, 227, 248, 0.2);
  transform: translate(-50%, -50%);
  left: var(--lx, 50%);
  top: var(--ly, 50%);
  pointer-events: none;
  opacity: var(--lop, 0);
  transition: opacity 0.2s ease;
  z-index: 5;
}

.smd-kf-mod .xray-ring::after {
  content: attr(data-ring-label);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}

/* ================= №02. ISOMETRIC EXPLODED 3D STACK (SSR-SAFE) ================= */
.smd-kf-mod .exploded-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4vw, 60px);
  background: radial-gradient(540px circle at 24% 50%, rgba(36, 68, 237, 0.2), transparent 66%), var(--dark);
  color: #eef1ff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(28px, 4.2vw, 56px);
  align-items: center;
  overflow: hidden;
}

.smd-kf-mod .exploded-scene {
  height: 450px;
  display: grid;
  place-items: center;
  perspective: 1300px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.smd-kf-mod .exploded-stack {
  position: relative;
  width: 276px;
  height: 276px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  transform-style: preserve-3d;
  transform: translateY(38px) rotateX(57deg) rotateZ(-38deg);
  transition: transform 0.6s var(--spring);
}

.smd-kf-mod .exploded-wrap:hover .exploded-stack {
  transform: translateY(38px) rotateX(54deg) rotateZ(-33deg);
}

.smd-kf-mod .exploded-plate {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #1d233a 0%, #131726 100%);
  border: 1.5px solid rgba(132, 156, 248, 0.34);
  box-shadow: -16px 16px 30px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backface-visibility: hidden;
  cursor: pointer;
  transform: translateZ(calc(var(--layer) * 62px + var(--lift, 0px)));
  transition: transform 0.55s var(--spring), border-color 0.3s, background 0.3s, box-shadow 0.4s, opacity 0.3s;
}

.smd-kf-mod .exploded-plate[data-pos="above"] {
  --lift: 58px;
  background: linear-gradient(145deg, rgba(28, 34, 56, 0.72) 0%, rgba(18, 21, 34, 0.78) 100%);
  border-color: rgba(132, 156, 248, 0.24);
  box-shadow: -10px 10px 22px rgba(0, 0, 0, 0.28);
}

.smd-kf-mod .exploded-plate[data-pos="below"] {
  --lift: -8px;
  background: linear-gradient(145deg, #171c2e 0%, #101320 100%);
  border-color: rgba(132, 156, 248, 0.28);
}

.smd-kf-mod .exploded-plate.is-active {
  background: linear-gradient(135deg, #2444ed 0%, #4b6bff 100%);
  border: 2px solid var(--lime);
  box-shadow: -22px 22px 46px rgba(10, 16, 48, 0.72), 0 0 28px rgba(36, 68, 237, 0.55);
  transform: translateZ(calc(var(--layer) * 62px + 18px)) translate(-26px, 14px);
}

.smd-kf-mod .exploded-plate span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 224, 255, 0.72);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.smd-kf-mod .exploded-plate.is-active span {
  color: var(--lime);
}

.smd-kf-mod .exploded-plate strong {
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #ffffff;
  transition: opacity 0.25s ease, transform 0.3s var(--spring);
}

.smd-kf-mod[data-kf-enhanced="1"] .exploded-plate:not(.is-active) strong {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.smd-kf-mod .exploded-chapters {
  display: grid;
  gap: 12px;
}

.smd-kf-mod .exploded-chapter {
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.35s var(--spring);
}

.smd-kf-mod .exploded-chapter.is-active {
  background: rgba(36, 68, 237, 0.22);
  border-color: #6b86ff;
  transform: translateX(6px);
}

.smd-kf-mod .exploded-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.smd-kf-mod .exploded-chapter-head > span {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9fb0ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 11px;
}

.smd-kf-mod .exploded-chapter.is-active .exploded-chapter-head > span {
  color: #141812;
  background: var(--lime);
  border-color: var(--lime);
}

.smd-kf-mod .exploded-chapter h3 {
  font-size: 19px;
}

/* SSR-first: open by default, smooth grid-row collapse only when JS enhanced */
.smd-kf-mod .exploded-chapter-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.42s var(--spring), opacity 0.35s ease;
}

.smd-kf-mod .exploded-chapter-collapse > div {
  overflow: hidden;
}

.smd-kf-mod[data-kf-enhanced="1"] .exploded-chapter:not(.is-active) .exploded-chapter-collapse {
  grid-template-rows: 0fr;
  opacity: 0.35;
}

.smd-kf-mod .exploded-chapter-body {
  padding-top: 10px;
  font-size: 14.5px;
  color: #c2cbec;
}

/* ================= №05. HERO-GRADE LAZY 3D CODE BLOCKS CALLOUT ================= */
.smd-kf-mod .particle-callout {
  position: relative;
  border-radius: var(--radius-lg);
  background: #101115;
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 26px 70px rgba(16, 17, 21, 0.18);
  min-height: 480px;
}

.smd-kf-mod .particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.smd-kf-mod .particle-copy {
  position: relative;
  z-index: 2;
  background: rgba(20, 22, 30, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: clamp(26px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.smd-kf-mod .particle-copy blockquote {
  margin: 10px 0 14px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.042em;
  font-weight: 550;
}

.smd-kf-mod .particle-copy blockquote span {
  color: #9bb0ff;
}

.smd-kf-mod .particle-copy p {
  color: #b8bdd0;
  font-size: 15px;
  line-height: 1.66;
}

.smd-kf-mod .particle-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.smd-kf-mod .particle-mini-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.smd-kf-mod .particle-mini-stat:nth-child(2) strong { color: #ff5561; }
.smd-kf-mod .particle-mini-stat:nth-child(3) strong { color: #8ea4ff; }

.smd-kf-mod .particle-mini-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.42;
  color: #9da3b8;
  margin-top: 4px;
}

.smd-kf-mod .particle-arena-side {
  position: relative;
  z-index: 2;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.smd-kf-mod .particle-arena-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.smd-kf-mod .particle-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(23, 24, 30, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d1d3de;
  backdrop-filter: blur(10px);
}

.smd-kf-mod .particle-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8199ff;
}

.smd-kf-mod .particle-blast-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(23, 24, 30, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e4e6f0;
  transition: background 0.25s;
}

.smd-kf-mod .particle-blast-btn:hover {
  background: #343746;
}

.smd-kf-mod .particle-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.smd-kf-mod .particle-pills span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(23, 24, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d5d8e6;
}

/* ================= №06. MAGNETIC BENTO SPOTLIGHT MATRIX (SSR-SAFE) ================= */
.smd-kf-mod .bento-matrix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.smd-kf-mod .bento-tile {
  grid-column: span 4;
  position: relative;
  border-radius: 22px;
  background: #141622;
  color: #eef1ff;
  padding: 26px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.smd-kf-mod .bento-tile--wide {
  grid-column: span 8;
  background: linear-gradient(135deg, #171d38, #121521);
}

.smd-kf-mod .bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--bx, -300px) var(--by, -300px), rgba(94, 123, 255, 0.26), transparent 45%);
  pointer-events: none;
}

.smd-kf-mod .bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(280px circle at var(--bx, -300px) var(--by, -300px), rgba(123, 227, 248, 0.92), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.smd-kf-mod .bento-tile small {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f9cd1;
  display: block;
  margin-bottom: 12px;
}

.smd-kf-mod .bento-tile h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.smd-kf-mod .bento-tile p {
  font-size: 14.5px;
  color: #b5bee2;
  line-height: 1.62;
}

.smd-kf-mod .bento-sandbox {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smd-kf-mod .bento-rule-variant {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--cyan);
}

.smd-kf-mod[data-kf-enhanced="1"] .bento-rule-variant:not(.is-active) {
  display: none;
}

.smd-kf-mod .bento-toggle-btn {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
}

/* ================= №07. ROTARY 3D PRISM CHAPTER CUBE (SSR-SAFE) ================= */
.smd-kf-mod .prism-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.smd-kf-mod .prism-nav {
  display: grid;
  gap: 10px;
}

.smd-kf-mod .prism-step-btn {
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.3s var(--spring);
  display: flex;
  align-items: center;
  gap: 12px;
}

.smd-kf-mod .prism-step-btn span {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}

.smd-kf-mod .prism-step-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateX(6px);
}

.smd-kf-mod .prism-step-btn.is-active span {
  color: var(--lime);
}

/* Without JS: all 4 faces stack cleanly as readable cards! */
.smd-kf-mod:not([data-kf-enhanced="1"]) .prism-rotor {
  display: grid;
  gap: 14px;
}

.smd-kf-mod[data-kf-enhanced="1"] .prism-viewport {
  height: 310px;
  perspective: 1400px;
  position: relative;
}

.smd-kf-mod[data-kf-enhanced="1"] .prism-rotor {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-155px) rotateX(calc(var(--prism-idx, 0) * 90deg));
  transition: transform 0.78s cubic-bezier(0.2, 0.9, 0.25, 1.04);
}

.smd-kf-mod .prism-face {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 44px);
  background: linear-gradient(135deg, #ffffff, #eff1fb);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(23, 24, 30, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.smd-kf-mod[data-kf-enhanced="1"] .prism-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(1) { transform: rotateX(0deg) translateZ(155px); }
.smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(2) { transform: rotateX(-90deg) translateZ(155px); }
.smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(3) { transform: rotateX(-180deg) translateZ(155px); }
.smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(4) { transform: rotateX(-270deg) translateZ(155px); }

.smd-kf-mod .prism-face h3 {
  font-size: clamp(23px, 2.5vw, 33px);
}

.smd-kf-mod .prism-face p {
  color: var(--ink-soft);
  max-width: 66ch;
}

.smd-kf-mod .prism-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.smd-kf-mod .prism-chips b {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--ink);
}

/* ================= №12. HORIZONTAL ACCORDION BELLOWS (SSR-SAFE, ZERO-JUMP CURTAIN) ================= */
.smd-kf-mod .bellows {
  display: grid;
  gap: 12px;
}

.smd-kf-mod[data-kf-enhanced="1"] .bellows {
  display: flex;
  min-height: 388px;
}

.smd-kf-mod .bellows-panel {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: flex-grow 0.54s var(--spring), background-color 0.24s ease, border-color 0.24s ease, color 0.22s ease;
}

.smd-kf-mod .bellows-panel.is-active,
.smd-kf-mod:not([data-kf-enhanced="1"]) .bellows-panel {
  flex-grow: 4.5;
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.smd-kf-mod .bellows-spine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.smd-kf-mod .bellows-role {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.smd-kf-mod .bellows-panel.is-active .bellows-role,
.smd-kf-mod:not([data-kf-enhanced="1"]) .bellows-role {
  color: var(--lime);
}

.smd-kf-mod .bellows-collapsed-title {
  display: none;
}

.smd-kf-mod .bellows-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
  margin-top: 22px;
}

@media (min-width: 981px) {
  .smd-kf-mod[data-kf-enhanced="1"] .bellows {
    height: var(--bellows-h, 396px);
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-collapsed-title {
    display: block;
    position: absolute;
    left: 24px;
    bottom: 24px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--ink);
    opacity: 1;
    transition: opacity 0.18s ease 0.12s;
    pointer-events: none;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel.is-active .bellows-collapsed-title {
    opacity: 0;
    transition: opacity 0.1s ease;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-body {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: var(--bellows-body-w, 620px);
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.26s ease 0.14s, transform 0.36s var(--spring) 0.1s, visibility 0s;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel:not(.is-active) .bellows-body {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.1s ease, transform 0.1s ease, visibility 0s linear 0.1s;
  }
}

@media (max-width: 980px) {
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel:not(.is-active) .bellows-collapsed-title {
    display: block;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.03em;
    margin-top: 6px;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel:not(.is-active) .bellows-body {
    display: none;
  }
}

.smd-kf-mod .bellows-body h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.smd-kf-mod .bellows-body p {
  color: #c1c9ea;
  font-size: 15px;
}

.smd-kf-mod .bellows-metrics {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

/* ================= №13. BLUEPRINT COORDINATE GRID & LIVE PROSE (SSR-SAFE) ================= */
.smd-kf-mod .blueprint-calc {
  position: relative;
  border-radius: var(--radius-lg);
  background: #f9fafe;
  border: 1px solid var(--line);
  padding: clamp(28px, 4.2vw, 54px);
  overflow: hidden;
}

.smd-kf-mod .blueprint-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.smd-kf-mod .blueprint-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.smd-kf-mod .bp-switches {
  display: grid;
  gap: 12px;
}

.smd-kf-mod .bp-group {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 18px;
}

.smd-kf-mod .bp-group-label {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.smd-kf-mod .bp-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.smd-kf-mod .bp-btn {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  transition: all 0.2s var(--spring);
}

.smd-kf-mod .bp-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.smd-kf-mod .bp-prose-col {
  display: grid;
  gap: 14px;
}

.smd-kf-mod .bp-prose {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px;
}

.smd-kf-mod .bp-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.smd-kf-mod .bp-prose p:last-child {
  margin-bottom: 0;
}

.smd-kf-mod .bp-live-val {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 750;
  transition: transform 0.25s var(--spring);
}

.smd-kf-mod .bp-live-val.is-pulsing {
  transform: scale(1.08);
}

/* Open HTML specification matrix — always in DOM for search crawlers & users */
.smd-kf-mod .bp-html-matrix {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 13px;
}

.smd-kf-mod .bp-html-matrix th,
.smd-kf-mod .bp-html-matrix td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.smd-kf-mod .bp-html-matrix th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: #f2f3fa;
}

.smd-kf-mod .bp-html-matrix tr:last-child td {
  border-bottom: 0;
}

/* ================= №14. SPATIAL ORBITING CALLOUTS (SSR-SAFE WITH REAL LINKS) ================= */
.smd-kf-mod .orbit-diagram {
  position: relative;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.smd-kf-mod .orbit-col {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.smd-kf-mod .orbit-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 18px 20px;
  transition: transform 0.25s var(--spring), border-color 0.25s, background 0.25s;
}

.smd-kf-mod .orbit-node:hover,
.smd-kf-mod .orbit-node.is-active {
  background: rgba(36, 68, 237, 0.26);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.smd-kf-mod .orbit-node small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.smd-kf-mod .orbit-node h3 {
  font-size: 17px;
  margin: 6px 0 8px;
}

.smd-kf-mod .orbit-node h3 a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.smd-kf-mod .orbit-node h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.smd-kf-mod .orbit-node p {
  font-size: 13.5px;
  color: #c2cbec;
  line-height: 1.55;
}

.smd-kf-mod .orbit-hub {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #2444ed, #172788);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 60px rgba(36, 68, 237, 0.5);
}

.smd-kf-mod .orbit-hub h3 {
  font-size: 24px;
  margin: 10px 0 12px;
}

.smd-kf-mod .orbit-hub p {
  font-size: 14.5px;
  color: #e4e9ff;
  line-height: 1.6;
}

.smd-kf-mod .orbit-hub-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

/* ================= RESPONSIVE (1024 / 768 / 390 / 360) ================= */
@media (max-width: 980px) {
  .smd-kf-mod__head,
  .smd-kf-mod .exploded-wrap,
  .smd-kf-mod .particle-callout,
  .smd-kf-mod .prism-layout,
  .smd-kf-mod .blueprint-inner {
    grid-template-columns: 1fr;
  }

  /* Bento: 2-column grid on tablets instead of skinny 3-col or over-stretched 1-col */
  .smd-kf-mod .bento-tile--wide {
    grid-column: span 12;
  }
  .smd-kf-mod .bento-tile:not(.bento-tile--wide) {
    grid-column: span 6;
  }

  /* Prism: 2x2 compact navigation grid above 3D prism */
  .smd-kf-mod .prism-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .smd-kf-mod .prism-step-btn.is-active {
    transform: translateY(-2px);
  }

  /* Bellows: crisp vertical accordion cards on tablet/mobile */
  .smd-kf-mod[data-kf-enhanced="1"] .bellows {
    flex-direction: column;
    min-height: 0;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel {
    flex: none;
    padding: 18px 22px;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel.is-active {
    padding: 24px;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .bellows-panel:not(.is-active) .bellows-collapsed-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 18px;
    margin-top: 6px;
  }
  .smd-kf-mod .bellows-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Orbit: place active hub on top, then 2x2 grid of nodes */
  .smd-kf-mod .orbit-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .smd-kf-mod .orbit-hub {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 820px) {
  .smd-kf-mod {
    padding: 32px 16px;
  }

  /* #01 X-Ray: dock toolbar cleanly at top so it never overlaps first card heading */
  .smd-kf-mod .xray-toolbar {
    position: relative;
    top: auto;
    right: auto;
    padding: 14px 18px 0;
    justify-content: flex-end;
  }
  .smd-kf-mod .xray-layer {
    grid-template-columns: 1fr;
    padding: 20px 20px 26px;
    gap: 20px;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .xray-layer--code {
    padding-top: 56px;
  }

  /* #02 Exploded stack: scaled neatly for mobile viewport without top clipping */
  .smd-kf-mod .exploded-wrap {
    padding: 22px 18px;
    gap: 20px;
  }
  .smd-kf-mod .exploded-scene {
    height: 316px;
  }
  .smd-kf-mod .exploded-stack,
  .smd-kf-mod .exploded-wrap:hover .exploded-stack {
    width: 186px;
    height: 186px;
    transform: translateY(50px) rotateX(56deg) rotateZ(-38deg);
  }
  .smd-kf-mod .exploded-plate {
    padding: 16px;
    border-radius: 18px;
    transform: translateZ(calc(var(--layer) * 36px + var(--lift, 0px)));
  }
  .smd-kf-mod .exploded-plate[data-pos="above"] {
    --lift: 34px;
  }
  .smd-kf-mod .exploded-plate.is-active {
    transform: translateZ(calc(var(--layer) * 36px + 10px)) translate(-14px, 8px);
  }
  .smd-kf-mod .exploded-plate strong {
    font-size: 16px;
  }
  .smd-kf-mod .exploded-chapter.is-active {
    transform: none;
  }

  /* #05 Floating Hero 3D code blocks: dedicated mobile arena below copy card */
  .smd-kf-mod .particle-callout {
    padding: 20px 16px;
    gap: 18px;
    min-height: 0;
  }
  .smd-kf-mod .particle-copy {
    padding: 22px 20px;
  }
  .smd-kf-mod .particle-arena-side {
    min-height: 300px;
  }
  .smd-kf-mod .particle-arena-top {
    justify-content: space-between;
  }
  .smd-kf-mod .particle-pills {
    justify-content: flex-start;
  }

  /* #06 Bento: single column on phones */
  .smd-kf-mod .bento-tile,
  .smd-kf-mod .bento-tile:not(.bento-tile--wide) {
    grid-column: span 12;
    padding: 22px 20px;
  }
  .smd-kf-mod .bento-toggle-btn {
    width: 100%;
    min-height: 42px;
    text-align: center;
  }

  /* #07 3D Prism: comfortable height & depth for 360px-390px text */
  .smd-kf-mod[data-kf-enhanced="1"] .prism-viewport {
    height: 360px;
  }
  .smd-kf-mod[data-kf-enhanced="1"] .prism-rotor {
    transform: translateZ(-180px) rotateX(calc(var(--prism-idx, 0) * 90deg));
  }
  .smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(1) { transform: rotateX(0deg) translateZ(180px); }
  .smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(2) { transform: rotateX(-90deg) translateZ(180px); }
  .smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(3) { transform: rotateX(-180deg) translateZ(180px); }
  .smd-kf-mod[data-kf-enhanced="1"] .prism-face:nth-child(4) { transform: rotateX(-270deg) translateZ(180px); }
  .smd-kf-mod .prism-face {
    padding: 22px 20px;
  }

  /* #13 Blueprint calculator & spec matrix */
  .smd-kf-mod .blueprint-calc {
    padding: 22px 16px;
  }
  .smd-kf-mod .bp-prose {
    padding: 20px;
  }
  .smd-kf-mod .bp-html-matrix th:nth-child(2),
  .smd-kf-mod .bp-html-matrix td:nth-child(2),
  .smd-kf-mod .bp-html-matrix th:nth-child(3),
  .smd-kf-mod .bp-html-matrix td:nth-child(3) {
    white-space: nowrap;
  }

  /* #14 Orbit: single column on phones */
  .smd-kf-mod .orbit-diagram {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }
  .smd-kf-mod .orbit-hub {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .smd-kf-mod__head h2 {
    font-size: clamp(25px, 7.2vw, 32px);
  }
  .smd-kf-mod .prism-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .smd-kf-mod .prism-step-btn {
    padding: 13px 16px;
  }
  .smd-kf-mod .particle-metrics-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .smd-kf-mod .particle-mini-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .smd-kf-mod .particle-mini-stat strong {
    min-width: 72px;
    font-size: 21px;
  }
  /* Stack matrix table cleanly on very narrow 360px screens so nothing wraps awkwardly */
  .smd-kf-mod .bp-html-matrix thead {
    display: none;
  }
  .smd-kf-mod .bp-html-matrix,
  .smd-kf-mod .bp-html-matrix tbody,
  .smd-kf-mod .bp-html-matrix tr,
  .smd-kf-mod .bp-html-matrix td {
    display: block;
    width: 100%;
  }
  .smd-kf-mod .bp-html-matrix tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .smd-kf-mod .bp-html-matrix tr:last-child {
    border-bottom: 0;
  }
  .smd-kf-mod .bp-html-matrix td {
    padding: 2px 0;
    border: 0;
    white-space: normal !important;
  }
  .smd-kf-mod .bp-html-matrix td:first-child {
    font-weight: 700;
    color: var(--ink);
  }
  .smd-kf-mod .bp-html-matrix td:last-child {
    color: var(--blue);
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smd-kf-mod *, .smd-kf-mod *::before, .smd-kf-mod *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 861px) {
  body[data-kf-page-title] .hero h1#hero-title,
  body[data-kf-page-title] .hero h1 {
    font-size: clamp(36px, 4.3vw, 64px) !important;
    line-height: 1.04 !important;
  }
}
@media (min-width: 521px) and (max-width: 860px) {
  body[data-kf-page-title] .hero h1#hero-title,
  body[data-kf-page-title] .hero h1 {
    font-size: clamp(30px, 6vw, 48px) !important;
    line-height: 1.06 !important;
  }
}
@media (max-width: 520px) {
  .hero h1#hero-title, .hero h1 {
    font-size: clamp(21px, 6.8vw, 33px) !important;
    line-height: 1.08 !important;
  }
}
@media (max-width: 380px) {
  .hero h1#hero-title, .hero h1 {
    font-size: clamp(19px, 6.1vw, 27px) !important;
    line-height: 1.08 !important;
  }
  .flow-heading {
    font-size: clamp(22px, 7vw, 29px) !important;
  }
}
@media (min-width: 821px) {
  .smd-kf-mod[data-kf-module="kf-text-xray-lens"] .xray-layer {
    padding-top: 68px;
  }
}
.smd-kf-mod .xray-ring:not([data-ring-label])::after {
  content: "ИНЖЕНЕРНЫЙ СЛОЙ";
}
.hero-copy > * { min-width: 0; }
@media (max-width: 860px) {
  .hero .hero-copy { grid-template-columns: 1fr !important; }
}
.smd-kf-mod { scroll-margin-top: 96px; overflow-x: clip; }
.smd-kf-mod .kf-ed-table-wrap { position: relative; }
.smd-kf-mod .exploded-chapter h3 { font-size: clamp(19px, 1.8vw, 24px); margin-bottom: 10px; }
.smd-kf-mod .kf-city-plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.smd-kf-mod .kf-city-plan input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: 450 14px/1.4 "Manrope", system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.smd-kf-mod .kf-city-plan input::placeholder { color: var(--muted); opacity: 0.85; }
.smd-kf-mod .kf-city-plan input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 68, 237, 0.12);
}
/* ================= EDITORIAL RESPONSIVE TABLE (.kf-ed-table-wrap — DARK OBSIDIAN BOARD) ================= */
.smd-kf-mod .kf-ed-table-wrap {
  border-radius: 26px;
  background: radial-gradient(620px circle at 12% 6%, rgba(36, 68, 237, 0.24), transparent 58%), #101116;
  color: #f3f5ff;
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: clamp(24px, 3.2vw, 42px);
  box-shadow: 0 28px 64px rgba(16, 17, 22, 0.22);
  max-width: 100%;
  overflow-x: auto;
}
.smd-kf-mod .kf-ed-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 14.8px;
  line-height: 1.56;
}
.smd-kf-mod .kf-ed-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa2ff;
  padding: 0 20px 8px;
  border: 0;
}
.smd-kf-mod .kf-ed-table tbody tr {
  background: #171a26;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s;
}
@media (hover: hover) {
  .smd-kf-mod .kf-ed-table tbody tr:hover {
    background: #1e243b;
    transform: translateX(4px);
  }
}
.smd-kf-mod .kf-ed-table td {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  color: #cdd4ee;
}
.smd-kf-mod .kf-ed-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 0 0 16px;
  width: 42%;
}
.smd-kf-mod .kf-ed-table td:nth-child(3) {
  white-space: nowrap;
  color: #eef1ff;
  font-weight: 550;
}
.smd-kf-mod .kf-ed-table td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 16px 16px 0;
}
.smd-kf-mod .kf-ed-table td strong {
  color: #ffffff;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.32;
  display: inline-block;
  margin-bottom: 5px;
}
.smd-kf-mod .kf-ed-price {
  white-space: nowrap;
  font-weight: 700;
  font-size: 16.5px;
  font-variant-numeric: tabular-nums;
  color: #dfef9c !important;
}
.smd-kf-mod .kf-ed-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  line-height: 1.62;
  color: #9da6c4;
}
@media (max-width: 860px) {
  .smd-kf-mod .kf-ed-table-wrap {
    padding: 20px 16px;
    border-radius: 22px;
  }
  .smd-kf-mod .kf-ed-table {
    border-spacing: 0;
  }
  .smd-kf-mod .kf-ed-table thead,
  .smd-kf-mod .kf-ed-table thead tr,
  .smd-kf-mod .kf-ed-table thead th {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }
  .smd-kf-mod .kf-ed-table,
  .smd-kf-mod .kf-ed-table tbody,
  .smd-kf-mod .kf-ed-table tr,
  .smd-kf-mod .kf-ed-table td {
    display: block;
    width: 100% !important;
  }
  .smd-kf-mod .kf-ed-table tbody tr {
    background: #171a26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    transform: none !important;
  }
  .smd-kf-mod .kf-ed-table tbody tr:last-child { margin-bottom: 0; }
  .smd-kf-mod .kf-ed-table td,
  .smd-kf-mod .kf-ed-table td:first-child,
  .smd-kf-mod .kf-ed-table td:nth-child(3),
  .smd-kf-mod .kf-ed-table td:last-child {
    border: 0;
    border-radius: 0;
    padding: 6px 0;
    white-space: normal;
  }
  .smd-kf-mod .kf-ed-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fa2ff;
    margin-bottom: 3px;
  }
  .smd-kf-mod .kf-ed-price {
    font-size: 18px;
  }
}

/* ================= KODOFORMA EXTRAS BUILDER ("ВТОРОЙ КВИЗ" ДОБОРКИ .pex) ================= */
.pex {
  --pex-accent: #5e7bff;
  --pex-blue: #2444ed;
  --pex-red: #f53643;
  --pex-lime: #dfef9c;
  --pex-ink: #17181e;
  --pex-muted: #585c70;
  box-sizing: border-box;
  padding: clamp(56px, 6.5vw, 96px) 0;
  background: radial-gradient(circle at 18% 12%, rgba(36, 68, 237, 0.22), transparent 45%), #101116;
  color: #f4f5fb;
  font: 450 16px/1.6 "Manrope", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}
.pex *, .pex *::before, .pex *::after { box-sizing: border-box; }
.pex [hidden] { display: none !important; }
.pex__wrap {
  width: min(1340px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}
.pex p, .pex h2, .pex h3 { margin-top: 0; }
.pex button, .pex textarea { font: inherit; }
.pex button { min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pex button:disabled { cursor: default; opacity: 0.6; }
.pex :is(button, a, textarea):focus-visible { outline: 2px solid var(--pex-lime); outline-offset: 3px; }
.pex__heading { max-width: 920px; margin-bottom: 30px; }
.pex__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: #8fa2ff;
  margin-bottom: 14px;
}
.pex__heading h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.042em;
  margin-bottom: 16px;
  color: #ffffff;
}
.pex__heading > p:last-child { max-width: 780px; color: #b5bad0; margin-bottom: 0; font-size: clamp(15px, 1.3vw, 18px); }
.pex__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pex__goals { display: flex; gap: 10px; flex-wrap: wrap; }
.pex__goals button {
  background: rgba(255, 255, 255, 0.04);
  color: #e9ecf8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pex__goals button[aria-pressed="true"] {
  background: var(--pex-blue);
  border-color: #6d86ff;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 68, 237, 0.38);
}
.pex__counter-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--pex-lime);
  background: rgba(223, 239, 156, 0.1);
  border: 1px solid rgba(223, 239, 156, 0.28);
  padding: 8px 16px;
  border-radius: 999px;
}
.pex__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
}
.pex__visual {
  background: #171a26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 26px;
  position: sticky;
  top: 92px;
  min-width: 0;
}
.pex__map { padding: 14px 0 20px; }
.pex__center {
  max-width: 300px;
  margin: 0 auto 22px;
  background: linear-gradient(145deg, #3a57f5, #1e38cb);
  text-align: center;
  padding: 26px 18px;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 24, 72, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.pex__center span { font-size: 10px; letter-spacing: 0.14em; display: block; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.pex__center b { display: block; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 6px; color: #fff; }
.pex__center small { font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.pex__nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pex__nodes button {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 13px 10px;
  text-align: center;
  color: #cbd0e6;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  overflow-wrap: anywhere;
}
.pex__nodes button[aria-pressed="true"] {
  background: var(--pex-lime);
  color: #141812;
  border: 1px solid var(--pex-lime);
  font-weight: 650;
}
.pex__nodes button[aria-pressed="true"]::before { content: "✓ "; font-weight: 700; }
.pex__base-note { font-size: 13px; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; margin-bottom: 12px; color: #cfd3e6; }
.pex__muted { color: #8e94ad; font-size: 12px; margin-bottom: 0; }
.pex__right { min-width: 0; }
.pex__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pex__card {
  padding: 22px;
  background: #f6f7fc;
  color: var(--pex-ink);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  min-width: 0;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.pex__card.is-selected { border-color: var(--pex-blue); background: #eef1ff; }
.pex__recommended {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pex-blue);
  min-height: 15px;
  text-transform: uppercase;
}
.pex__card h3 {
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 8px 0 10px;
  color: #141622;
}
.pex__card p { font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; color: #3d4154; }
.pex__card small { display: block; font-size: 11.5px; color: var(--pex-muted); line-height: 1.45; margin-bottom: 14px; }
.pex__card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pex__card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pex-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pex__card button[data-extras-toggle] {
  background: #ffffff;
  border: 1px solid #c5cadf;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #171926;
  line-height: 1.4;
}
.pex__card button[data-extras-toggle][aria-pressed="true"] {
  background: var(--pex-blue);
  color: #ffffff;
  border-color: var(--pex-blue);
}
.pex__brief {
  margin-top: 18px;
  padding: 24px;
  background: #171a26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}
.pex__summary { font-size: 14px; color: #e6e9f7; margin-bottom: 14px; }
.pex__text {
  display: block;
  width: 100%;
  min-height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 13px;
  background: #0f1119;
  color: #eef1fc;
  resize: vertical;
  font-size: 13px !important;
  line-height: 1.55;
}
.pex__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.pex__cta-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--pex-red);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
}
.pex__actions button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef1fc;
  padding: 9px 15px;
  font-size: 12.5px;
}
.pex__status { color: #9da4bf; font-size: 12px; margin: 12px 0 0; min-height: 18px; }
.pex__noscript { color: #b5bad0; font-size: 13.5px; margin: 22px 0 0; }
@media (max-width: 1080px) {
  .pex__layout { grid-template-columns: 1fr; }
  .pex__visual { position: static; }
}
@media (max-width: 720px) {
  .pex__cards { grid-template-columns: 1fr; }
  .pex__nodes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .pex__nodes { grid-template-columns: 1fr; }
}

/* ================= 16. KODOFORMA TACTILE FAQ CAPSULES (kf-text-faq-capsules + #main .faq-section) ================= */
.smd-kf-mod .faq-capsules,
#main section.faq-section .faq-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  counter-reset: kf-faq-counter;
}
#main section.faq-section .kf-faq-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
#main section.faq-section {
  scroll-margin-top: 96px;
  display: block !important;
  background: #eeeef5 !important;
  color: #17181e !important;
  border-block: 1px solid #cfd2e3 !important;
  padding: clamp(56px, 6.5vw, 96px) clamp(20px, 4vw, 60px) !important;
  position: relative;
  overflow-x: clip;
}
#main section.faq-section > div:first-child,
#main section.faq-section > .faq-list {
  max-width: 1320px !important;
  margin-inline: auto !important;
}
#main section.faq-section > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px 32px !important;
  margin-bottom: clamp(26px, 3vw, 38px) !important;
}
#main section.faq-section .section-number {
  width: 100%;
  margin: 0 0 -6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #2444ed !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#main section.faq-section .section-number::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2444ed;
  box-shadow: 0 0 10px rgba(36, 68, 237, 0.65);
  flex-shrink: 0;
}
#main section.faq-section h2#faq-title {
  margin: 0 !important;
  max-width: 22ch !important;
  font-size: clamp(28px, 3.4vw, 48px) !important;
  font-weight: 550 !important;
  line-height: 1.07 !important;
  letter-spacing: -0.044em !important;
  color: #17181e !important;
  opacity: 1 !important;
  transform: none !important;
}
#main section.faq-section h2#faq-title .flow-letter,
#main section.faq-section h2#faq-title .flow-word {
  opacity: 1 !important;
  transform: none !important;
  color: inherit !important;
}
.kf-faq-toggle-all {
  appearance: none;
  border: 1px solid #c5cadf;
  background: #ffffff;
  color: #17181e;
  font: 600 13px/1.2 "Manrope", system-ui, sans-serif;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 6px 18px rgba(20, 23, 38, 0.05);
}
.kf-faq-toggle-all:hover {
  border-color: #2444ed;
  color: #2444ed;
  transform: translateY(-1px);
}
.kf-faq-toggle-all[aria-pressed="true"] {
  background: #101116;
  border-color: #101116;
  color: #ffffff;
}

.smd-kf-mod .faq-cap,
#main section.faq-section .faq-list details {
  counter-increment: kf-faq-counter;
  background: #ffffff !important;
  border: 1px solid #cfd2e3 !important;
  border-radius: 22px !important;
  padding: 22px 24px !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20, 23, 38, 0.04);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s, border-color 0.28s, box-shadow 0.32s;
}
.smd-kf-mod .faq-cap::before,
#main section.faq-section .faq-list details::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--fx, -200px) var(--fy, -200px), rgba(36, 68, 237, 0.11), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
@media (hover: hover) {
  #main section.faq-section .faq-list details:not([open]):hover {
    transform: translateY(-2px);
    border-color: #96a4de !important;
    box-shadow: 0 16px 34px rgba(36, 68, 237, 0.09);
  }
}
.smd-kf-mod .faq-cap.is-open,
#main section.faq-section .faq-list details[open] {
  background: #101116 !important;
  color: #ffffff !important;
  border-color: #252a3d !important;
  box-shadow: 0 22px 50px rgba(16, 17, 22, 0.22) !important;
}
#main section.faq-section .faq-list details[open]::before {
  background: radial-gradient(320px circle at var(--fx, 88%) var(--fy, 18%), rgba(36, 68, 237, 0.24), transparent 65%);
}

#main section.faq-section .faq-list summary {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 36px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: #17181e !important;
  font-size: clamp(16px, 1.2vw, 18.5px) !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  letter-spacing: -0.02em !important;
  position: relative;
  z-index: 2;
}
#main section.faq-section .faq-list summary::-webkit-details-marker {
  display: none !important;
}
#main section.faq-section .faq-list summary::before {
  content: attr(data-faq-num);
  content: var(--faq-num-str, counter(kf-faq-counter, decimal-leading-zero));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #2444ed;
  background: #eef1ff;
  border: 1px solid rgba(36, 68, 237, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  line-height: 1;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
#main section.faq-section .faq-list details[open] summary {
  color: #ffffff !important;
}
#main section.faq-section .faq-list details[open] summary::before {
  background: rgba(223, 239, 156, 0.16);
  border-color: rgba(223, 239, 156, 0.34);
  color: #dfef9c;
}

.smd-kf-mod .faq-cap-orb,
#main section.faq-section .faq-list summary > span {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #f0f2fa !important;
  border: 1px solid #d5d9eb !important;
  color: #17181e !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transform: rotate(0deg) !important;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s, color 0.25s, border-color 0.25s !important;
}
.smd-kf-mod .faq-cap.is-open .faq-cap-orb,
#main section.faq-section .faq-list details[open] summary > span {
  background: #2444ed !important;
  border-color: #5370ff !important;
  color: #ffffff !important;
  transform: rotate(45deg) !important;
}

#main section.faq-section .faq-list details > p,
#main section.faq-section .faq-list details > div {
  margin: 16px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  max-width: none !important;
  color: #d2d8f0 !important;
  font-size: 14.8px !important;
  line-height: 1.66 !important;
  position: relative;
  z-index: 2;
  animation: kfFaqCapOpen 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes kfFaqCapOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 960px) {
  .smd-kf-mod .faq-capsules,
  #main section.faq-section .faq-list {
    grid-template-columns: 1fr !important;
  }
  #main section.faq-section .kf-faq-col {
    display: contents !important;
  }
  #main section.faq-section .faq-list details {
    order: var(--faq-order, 0);
  }
}
@media (max-width: 560px) {
  #main section.faq-section .faq-list details {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
  #main section.faq-section .faq-list summary {
    grid-template-columns: auto minmax(0, 1fr) 32px !important;
    gap: 10px !important;
    font-size: 15.5px !important;
  }
  #main section.faq-section .faq-list summary > span {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 18px !important;
  }
}
