/*
  Раздел «Возможности» (/vozmozhnosti/*). Тот же мир, что у страниц уроков и «Партнёрам» (.lx, lessons.css):
  тёмно-синий первый экран, синий акцент, мягкие карточки. Здесь — карточки функций, демо клавиатур,
  цифр и строя гармони. Цвета кнопок клавиатуры повторяют классический стиль программы.
*/

.lx {
  --ft-teal: #2b9a8c;
  --ft-teal-soft: #e3f3f0;
  --ft-peach: #f6dcc6;
  --ft-peach-line: #e8b98f;
  --ft-dark-key: #3a4658;
  --ft-amber: #f59e0b;
}

/* ---------- Первый экран: текст + демо ---------- */

.ft-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ft-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

.ft-hero-note {
  margin: .75rem 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}

.ft-panel {
  padding: 1.25rem;
  border-radius: var(--lx-radius);
  background: #fff;
  color: var(--lx-text);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45);
}

.ft-panel-title {
  display: block;
  margin-bottom: .75rem;
  font-weight: 700;
  color: var(--lx-ink);
}

.ft-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: .9rem;
  font-size: .9rem;
  color: var(--lx-muted);
}

/* ---------- Переключатели-пилюли ---------- */

.ft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.ft-tabs button {
  padding: .5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-tabs button[aria-pressed="true"] {
  background: var(--lx-blue);
  color: #fff;
}

/* ---------- Кнопочная клавиатура ---------- */

.ft-kb {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 140px;
  padding: .5rem 0;
  overflow: hidden;
}

.ft-kb-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ft-kb-col.is-shifted {
  margin-top: 20px;
}

.ft-key {
  display: grid;
  place-items: center;
  width: clamp(26px, 6.4vw, 38px);
  height: clamp(26px, 6.4vw, 38px);
  border: 2px solid var(--ft-peach-line);
  border-radius: 50%;
  background: var(--ft-peach);
  color: #6b4220;
  font-size: clamp(8px, 1.8vw, 10.5px);
  font-weight: 700;
  transition: transform .15s, background .15s, box-shadow .15s;
}

.ft-key.is-c {
  border-color: #d7dde6;
  background: #fff;
  color: #44546a;
}

.ft-key.is-sharp {
  border-color: var(--ft-dark-key);
  background: var(--ft-dark-key);
  color: #fff;
}

.ft-key.is-on {
  border-color: var(--ft-teal);
  background: var(--ft-teal);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(43, 154, 140, .22);
}

/* фортепианная правая */
.ft-piano {
  position: relative;
  display: flex;
  height: 140px;
  padding: .5rem 0;
}

.ft-piano-w {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: 3px;
  padding-bottom: 6px;
  border: 1px solid #cfd6e0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: #6b7a90;
  font-size: 10px;
  font-weight: 700;
  transition: background .15s, color .15s;
}

.ft-piano-b {
  position: absolute;
  top: .5rem;
  z-index: 1;
  height: 58%;
  border-radius: 0 0 6px 6px;
  background: var(--ft-dark-key);
  transition: background .15s;
}

.ft-piano .is-on {
  background: var(--ft-teal);
  color: #fff;
}

/* ---------- Карточки ---------- */

.ft-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .ft-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .ft-cards.is-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ft-cards.is-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ft-cards > li {
  padding: 1.5rem;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  background: #fff;
}

.ft-cards h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.15rem;
}

.ft-cards p {
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.6;
}

.ft-cards .ft-label {
  margin-bottom: .25rem;
}

.ft-cards.is-accent > li:last-child {
  border-color: var(--ft-teal);
}

.ft-label {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
  font-size: .78rem;
  font-weight: 700;
}

.ft-label.is-teal {
  background: var(--ft-teal-soft);
  color: var(--ft-teal);
}

.ft-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
}

.ft-badge .lx-icon {
  width: 26px;
  height: 26px;
}

/* ---------- Текст + картинка ---------- */

.ft-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ft-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.ft-check {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ft-check li {
  position: relative;
  padding: .4rem 0 .4rem 1.75rem;
  line-height: 1.55;
}

.ft-check li:before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .85rem;
  width: .7rem;
  height: .4rem;
  border-left: 2px solid var(--ft-teal);
  border-bottom: 2px solid var(--ft-teal);
  transform: rotate(-45deg);
}

/* ---------- Тёмная секция ---------- */

.ft-dark {
  background: var(--lx-navy);
  color: rgba(255, 255, 255, .78);
}

.ft-dark .lx-h2,
.ft-dark h3 {
  color: #fff;
}

.ft-dark .lx-sub {
  color: rgba(255, 255, 255, .7);
}

.ft-dark .ft-cards > li {
  border-color: rgba(255, 255, 255, .1);
  background: var(--lx-navy-2);
}

.ft-dark .ft-cards p {
  color: rgba(255, 255, 255, .7);
}

/* клавиши компьютера */
.ft-pc {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 1.25rem;
  border-radius: var(--lx-radius);
  background: var(--lx-navy-2);
}

.ft-pc .ft-key {
  border-radius: 10px;
}

/* ---------- Стили клавиатуры ---------- */

.ft-skin {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 1rem;
  padding: 1rem .5rem;
  border-radius: 12px;
}

.ft-skin .ft-key {
  border-color: rgba(0, 0, 0, .08);
}

.ft-skin .ft-key.is-used {
  border-color: var(--ft-amber);
}

.ft-skin .ft-key.is-pressed {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 0 16px 4px rgba(80, 140, 255, .45);
  color: #fff;
}

/* ---------- Цифры ---------- */

.ft-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ft-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 44px;
}

.ft-chip b {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .4rem;
  border-radius: 12px;
  background: var(--lx-blue-soft);
  color: var(--lx-ink);
  font-size: 1.05rem;
  transition: transform .15s, background .15s;
}

.ft-chip small {
  color: var(--lx-muted);
  font-size: .72rem;
}

.ft-chip.is-on b {
  background: var(--ft-teal);
  color: #fff;
  transform: translateY(-4px);
}

.ft-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .ft-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ft-stat {
  padding: 1.5rem;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  background: #fff;
}

.ft-stat strong {
  display: block;
  color: var(--lx-blue);
  font-size: 2.6rem;
  line-height: 1;
}

.ft-stat p {
  margin: .6rem 0 0;
  color: var(--lx-muted);
}

.ft-code {
  padding: .05rem .45rem;
  border-radius: 6px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue);
  font-weight: 700;
}

/* ---------- Строй гармони ---------- */

.ft-tunings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

@media (min-width: 576px) {
  .ft-tunings {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ft-tunings button {
  position: relative;
  padding: .55rem .7rem;
  border: 0;
  border-radius: 12px;
  background: #f1f4f9;
  color: var(--lx-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ft-tunings button b {
  font-size: .88rem;
}

.ft-tunings button small {
  display: block;
  color: var(--lx-muted);
  font-size: .7rem;
}

.ft-tunings button i {
  position: absolute;
  top: .7rem;
  right: .6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ft-amber);
}

/* подпись выбранного строя: высота на две строки, чтобы кнопка под ней не прыгала при смене строя */
.ft-tuning-info {
  min-height: 3em;
  margin: .9rem 0 .6rem;
  color: var(--lx-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.ft-tunings button[aria-checked="true"] {
  background: var(--lx-blue-soft);
  box-shadow: inset 0 0 0 2px var(--lx-blue);
}

/* ---------- Первая неделя ---------- */

.ft-days {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.ft-days li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--lx-line);
}

@media (min-width: 576px) {
  .ft-days li {
    grid-template-columns: 9rem 1fr;
    gap: 1.25rem;
  }
}

.ft-days b {
  color: var(--lx-blue);
}

.ft-days p {
  margin: 0;
  color: var(--lx-muted);
}

/* ---------- Другие возможности ---------- */

.ft-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .ft-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .ft-related {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ft-related a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lx-line);
  border-radius: 14px;
  background: #fff;
  color: var(--lx-ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, transform .3s var(--lx-ease);
}

.ft-related a:hover {
  border-color: var(--lx-blue);
  transform: translateY(-2px);
}

.ft-related small {
  display: block;
  margin-top: .25rem;
  color: var(--lx-muted);
  font-weight: 500;
}
