/* ==========================================================================
   Fastkava — B2 features / Переваги (interactive: tablist + big display)
   ========================================================================== */

.fk-features {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px);
}

.fk-features__inner { position: relative; }

/* Heading */
.fk-features__head { margin-bottom: clamp(32px, 5vw, 44px); }
.fk-features__kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--fk-text-muted);
}
.fk-features__kicker-line { width: 34px; height: 2px; background: var(--fk-accent); }
.fk-features__title { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: .5px; }
.fk-features__title span { color: var(--fk-heading); }
.fk-features__title span.fk-features__title-accent { color: var(--fk-accent); }

/* Grid: tablist (left) + display panel (right) */
.fk-features__grid { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: 24px; align-items: stretch; }

/* Tablist of feature pills */
.fk-features__list { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
/* Glass exactly as the design canvas (`rowStyle` / `rowStyleL` in 3a / 3b): a
   top-down sheen gradient over a translucent fill, blurred behind. The selected
   pill swaps the sheen for an accent tint and adds the orange glow. */
.fk-features__pill {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 11px 22px 11px 14px; border-radius: 999px; cursor: pointer; color: inherit;
  border: 1.5px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012) 60%), rgba(20,15,11,0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.fk-features__pill.is-active {
  border-color: var(--fk-accent);
  background: linear-gradient(180deg, rgba(251,83,0,0.12), rgba(251,83,0,0.04) 60%), rgba(20,15,11,0.55);
  box-shadow: 0 0 26px rgba(251,83,0,0.18);
}
:root[data-theme="light"] .fk-features__pill {
  border-color: rgba(26,21,18,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.3) 60%), rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
:root[data-theme="light"] .fk-features__pill.is-active {
  border-color: var(--fk-accent);
  background: linear-gradient(180deg, rgba(251,83,0,0.10), rgba(251,83,0,0.03) 60%), rgba(255,255,255,0.5);
  box-shadow: 0 0 26px rgba(251,83,0,0.14);
}
.fk-features__pill-icon { flex: none; width: 38px; height: 38px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.fk-features__pill-title { font-size: 15px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--fk-heading); }
.fk-features__pill-num { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.30); }
:root[data-theme="light"] .fk-features__pill-num { color: rgba(26,21,18,0.30); }

/* Display panel */
.fk-features__panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 48px 40px; border-radius: 24px; }
.fk-features__panel-glow {
  position: absolute; top: 50%; left: 50%; width: 360px; height: 360px; max-width: 90%;
  transform: translate(-50%, -56%); border-radius: 50%;
  background: radial-gradient(circle, rgba(251,83,0,0.20) 0%, transparent 65%); pointer-events: none;
}
.fk-features__display { position: relative; display: none; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.fk-features__display.is-active { display: flex; animation: fkFeatIn .35s var(--fk-ease); }
@keyframes fkFeatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fk-features__display-icon {
  width: clamp(120px, 15vw, 190px); height: clamp(120px, 15vw, 190px);
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}
:root[data-theme="light"] .fk-features__display-icon { filter: drop-shadow(0 18px 30px rgba(26,21,18,0.22)); }
.fk-features__display-title { font-size: clamp(21px, 3vw, 28px); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--fk-heading); }
.fk-features__display-text { margin: 0; max-width: 520px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--fk-text-muted); }

@media (max-width: 860px) {
  .fk-features__grid { grid-template-columns: 1fr; gap: 20px; }
  .fk-features__panel { order: -1; min-height: 0; padding: 24px 16px 8px; }   /* display above the list on mobile */
  .fk-features__panel-glow { width: 240px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .fk-features__display.is-active { animation: none; } }
