/*
 * Experience v6.
 * Мобильный кабинет дополняет desktop-интерфейс, а каталог становится
 * самостоятельной сценой выбора вместо обычной служебной панели фильтров.
 */

/* Связка desktop + mobile в первом экране. */
.product-device-stage {
  align-self: center;
  min-width: 0;
  padding: 28px 0 42px 76px;
  position: relative;
}

.product-device-stage .product-demo {
  align-self: auto;
  width: 100%;
}

.product-phone {
  bottom: 0;
  filter: drop-shadow(0 30px 42px rgba(17, 22, 47, .3));
  left: 0;
  position: absolute;
  transform: rotate(-3.5deg);
  transform-origin: 50% 100%;
  transition: filter .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  width: clamp(196px, 13.5vw, 234px);
  z-index: 4;
}

.product-phone:hover,
.product-phone:focus-within {
  filter: drop-shadow(0 38px 52px rgba(17, 22, 47, .38));
  transform: rotate(-1deg) translateY(-8px);
}

.phone-hardware {
  aspect-ratio: 9 / 19.25;
  background:
    radial-gradient(circle at 105% 8%, rgba(120, 231, 255, .36), transparent 26%),
    linear-gradient(170deg, #fcfdff 0%, #f1f3ff 62%, #eceaff 100%);
  border: 6px solid var(--brand-night);
  border-radius: 35px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: var(--brand-night);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 13px 11px 10px;
  position: relative;
}

.phone-island {
  background: var(--brand-night);
  border-radius: 999px;
  height: 17px;
  left: 50%;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 66px;
  z-index: 3;
}

.phone-status {
  align-items: center;
  display: flex;
  font-size: 6px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 15px;
  padding: 0 5px;
}

.phone-status i { width: 60px; }
.phone-status b { font-size: 5px; letter-spacing: .03em; }

.phone-appbar {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 26px 1fr 25px;
  margin-top: 12px;
}

.phone-appbar > strong {
  align-items: center;
  background: var(--brand-electric);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 8px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.phone-appbar > div { display: grid; gap: 1px; }
.phone-appbar small { color: #848aa1; font-size: 5px; }
.phone-appbar b { font-size: 8px; }
.phone-appbar button {
  background: #fff;
  border: 1px solid rgba(17, 22, 47, .08);
  border-radius: 8px;
  color: var(--brand-coral);
  font: 800 6px Manrope, sans-serif;
  height: 25px;
  padding: 0;
}

.phone-panels { flex: 1; min-height: 0; position: relative; }
.phone-panel { animation: phone-panel-in .32s ease both; padding-top: 24px; }
.phone-panel[hidden] { display: none; }
.phone-eyebrow {
  color: var(--brand-electric);
  display: block;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.phone-panel > h3 {
  font: 750 clamp(19px, 1.5vw, 25px)/.94 Manrope, sans-serif;
  letter-spacing: -.07em;
  margin: 7px 0 16px;
}

.phone-lesson-card {
  background: var(--brand-night);
  border-radius: 16px;
  color: #fff;
  display: grid;
  min-height: 144px;
  overflow: hidden;
  padding: 13px;
  position: relative;
}

.phone-lesson-card::after {
  background: var(--brand-ice);
  border-radius: 50%;
  content: "";
  height: 90px;
  opacity: .94;
  position: absolute;
  right: -44px;
  top: -36px;
  width: 90px;
}

.phone-lesson-card > span {
  align-items: center;
  color: #aeb5d2;
  display: flex;
  font-size: 5px;
  gap: 5px;
  text-transform: uppercase;
}

.phone-lesson-card > span i {
  animation: phone-live 1.4s ease-in-out infinite;
  background: var(--brand-coral);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.phone-lesson-card > strong { align-self: end; font-size: 12px; letter-spacing: -.04em; position: relative; z-index: 1; }
.phone-lesson-card > small { color: #969db9; font-size: 5px; margin-top: 4px; }
.phone-lesson-card > button {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--brand-night);
  display: flex;
  font: 800 6px Manrope, sans-serif;
  justify-content: space-between;
  margin-top: 11px;
  min-height: 27px;
  padding: 0 7px 0 9px;
}

.phone-lesson-card > button b {
  align-items: center;
  background: var(--brand-ice);
  border-radius: 6px;
  display: flex;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.phone-mini-row { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin-top: 7px; }
.phone-mini-row article {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(17, 22, 47, .07);
  border-radius: 11px;
  display: grid;
  min-height: 52px;
  padding: 8px;
}
.phone-mini-row span { color: #8b90a3; font-size: 5px; text-transform: uppercase; }
.phone-mini-row strong { align-self: end; font-size: 12px; }

.phone-progress {
  align-items: center;
  background: linear-gradient(145deg, var(--brand-electric), #4134bb);
  border-radius: 16px;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 92px;
  padding: 13px;
}
.phone-progress > div { align-items: end; display: flex; }
.phone-progress strong { font-size: 35px; letter-spacing: -.08em; line-height: .8; }
.phone-progress span { color: var(--brand-ice); font-size: 10px; font-weight: 800; }
.phone-progress p { color: #d5d3ff; font-size: 6px; line-height: 1.45; margin: 0 0 0 10px; }
.phone-route { list-style: none; margin: 8px 0 0; padding: 0; }
.phone-route li {
  align-items: center;
  border-bottom: 1px solid rgba(17, 22, 47, .08);
  display: flex;
  gap: 8px;
  min-height: 49px;
}
.phone-route li > i {
  align-items: center;
  border: 1px solid #cfd4e4;
  border-radius: 50%;
  color: #9399ad;
  display: flex;
  font-size: 6px;
  font-style: normal;
  height: 22px;
  justify-content: center;
  width: 22px;
}
.phone-route li.is-done > i { background: var(--brand-night); border-color: var(--brand-night); color: #fff; }
.phone-route li.is-current > i { background: var(--brand-electric); border-color: var(--brand-electric); color: #fff; }
.phone-route li > span { display: grid; gap: 2px; }
.phone-route b { font-size: 7px; }
.phone-route small { color: #9298ac; font-size: 5px; }

.phone-chat { display: grid; gap: 8px; }
.phone-chat > div { border-radius: 12px; font-size: 6px; line-height: 1.55; max-width: 88%; padding: 9px; }
.phone-chat p { margin: 3px 0; }
.phone-chat small { color: #8c92a8; font-size: 4.5px; }
.phone-chat .is-teacher { background: #fff; border: 1px solid rgba(17, 22, 47, .08); }
.phone-chat .is-student { background: var(--brand-electric); color: #fff; justify-self: end; }
.phone-chat .is-student small { color: #d8d5ff; display: block; text-align: right; }
.phone-compose {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 22, 47, .09);
  border-radius: 10px;
  color: #a0a5b7;
  display: flex;
  font-size: 6px;
  justify-content: space-between;
  margin-top: 12px;
  min-height: 31px;
  padding: 0 5px 0 9px;
}
.phone-compose b { align-items: center; background: var(--brand-ice); border-radius: 7px; color: var(--brand-night); display: flex; height: 22px; justify-content: center; width: 22px; }

.phone-tabs {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(17, 22, 47, .08);
  border-radius: 13px;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7px;
  padding: 4px;
}
.phone-tabs button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #8a90a4;
  cursor: pointer;
  display: grid;
  font: 700 5px Manrope, sans-serif;
  gap: 2px;
  justify-items: center;
  min-height: 33px;
  padding: 4px;
}
.phone-tabs button i { font-size: 8px; font-style: normal; }
.phone-tabs button.is-active { background: var(--brand-night); color: #fff; }
.phone-tabs button.is-active i { color: var(--brand-ice); }

/* Компактная панель каталога продолжает язык рабочего интерфейса. */
.catalog-window { border-color: rgba(17, 22, 47, .12); }
.catalog-toolbar {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(120, 231, 255, .12), transparent 34%),
    #f8f9fd;
  border-bottom: 1px solid var(--ui-border);
  color: var(--brand-night);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(300px, 1fr) minmax(420px, auto);
  min-height: 132px;
  padding: 22px 30px;
}

.catalog-toolbar-copy { align-content: center; display: grid; gap: 0; }
.catalog-toolbar .catalog-sequence {
  align-items: center;
  color: #747c96;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.catalog-sequence i {
  background: var(--brand-coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 95, 122, .09);
  height: 6px;
  width: 6px;
}
.catalog-toolbar-copy > strong {
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin-top: 11px;
}
.catalog-toolbar-copy > p {
  color: #7d8499;
  font-size: 14px;
  line-height: 1.6;
  margin: 5px 0 0;
  max-width: 460px;
}

.catalog-toolbar-control {
  align-content: center;
  display: grid;
}
.catalog-toolbar-control > span {
  color: #858ca2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.catalog-toolbar .catalog-toolbar-control nav {
  background: #eceef5;
  border: 1px solid #e1e4ed;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}
.catalog-toolbar .catalog-toolbar-control button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #666d82;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: 20px 1fr;
  min-height: 56px;
  padding: 8px 12px;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.catalog-toolbar .catalog-toolbar-control button:hover { background: rgba(255, 255, 255, .7); transform: translateY(-1px); }
.catalog-toolbar .catalog-toolbar-control button i { color: var(--brand-electric); font-size: 11px; font-style: normal; grid-row: 1 / 3; }
.catalog-toolbar .catalog-toolbar-control button span { color: inherit; font-size: 14px; font-weight: 800; }
.catalog-toolbar .catalog-toolbar-control button small { color: #9298aa; font-size: 12px; }
.catalog-toolbar .catalog-toolbar-control button.is-active {
  background: var(--brand-night);
  box-shadow: 0 6px 16px rgba(17, 22, 47, .13);
  color: #fff;
}
.catalog-toolbar .catalog-toolbar-control button.is-active i { color: var(--brand-ice); }
.catalog-toolbar .catalog-toolbar-control button.is-active span { color: #fff; }
.catalog-toolbar .catalog-toolbar-control button.is-active small { color: #aeb5d2; }

.catalog-result-line {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--ui-border);
  color: #888fa6;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 30px;
  text-transform: uppercase;
}
.catalog-result-line b { color: var(--brand-electric); font-size: 12px; letter-spacing: .04em; }

/* Карточки программ собраны как продуктовые мини-экраны, а не товарная сетка. */
.catalog-window .program-deck {
  background: #e9edf6;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.catalog-window .program-deck .program-tile {
  background: var(--brand-paper);
  border: 1px solid rgba(17, 22, 47, .08);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(17, 22, 47, .06);
  color: var(--brand-night);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 470px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.catalog-window .program-deck .program-tile::before,
.catalog-window .program-deck .program-tile::after { content: none; display: none; }
.catalog-window .program-deck .program-tile:hover { box-shadow: 0 24px 55px rgba(17, 22, 47, .13); transform: translateY(-4px); }
.catalog-window .program-deck .program-tile.is-filtered { display: none; }

.catalog-window .program-tile:not(:has(.public-program-visual)) > .program-tile-head {
  align-items: center;
  display: flex;
  grid-row: auto;
  justify-content: space-between;
  padding: 0;
  position: relative;
  z-index: 3;
}
.program-tile-head > span {
  align-items: center;
  color: #747b91;
  display: flex;
  font-size: 7px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.program-tile-head > span i { background: var(--program-accent, var(--brand-electric)); border-radius: 50%; height: 7px; width: 7px; }
.program-tile-head > b {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(17, 22, 47, .08);
  border-radius: 999px;
  color: #535a70;
  font-size: 7px;
  padding: 7px 9px;
  text-transform: uppercase;
}

.catalog-window .program-tile > .program-tile-body {
  align-self: stretch;
  display: grid;
  flex: 1;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(185px, .95fr);
  margin-top: 18px;
  min-height: 0;
}
.program-tile-copy { align-content: center; display: grid; min-width: 0; padding: 6px; }
.program-tile:nth-child(even) .program-tile-copy { grid-column: 2; grid-row: 1; }
.program-tile:nth-child(even) .program-tile-stage { grid-column: 1; grid-row: 1; }
.program-tile-subject {
  color: var(--program-accent, var(--brand-electric));
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-window .program-tile h3 {
  font: 760 clamp(27px, 2.25vw, 39px)/.97 Manrope, sans-serif;
  letter-spacing: -.065em;
  margin: 15px 0 13px;
  overflow-wrap: anywhere;
}
.catalog-window .program-tile h3 a { color: inherit; text-decoration: none; }
.catalog-window .program-tile h3 a::after { content: " ↗"; color: var(--program-accent, var(--brand-electric)); font-size: .45em; vertical-align: top; }
.catalog-window .program-tile-copy > p {
  color: #6f768c;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 330px;
}
.program-tile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.program-tile-meta span {
  background: rgba(91, 77, 242, .07);
  border: 1px solid rgba(91, 77, 242, .11);
  border-radius: 999px;
  color: #5f6680;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 9px;
}

.program-tile-stage {
  align-self: stretch;
  background: #eef0f8;
  border-radius: 17px;
  min-height: 285px;
  overflow: hidden;
  position: relative;
}
.program-tile-stage::after {
  background: linear-gradient(180deg, transparent 45%, rgba(17, 22, 47, .3));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.program-tile-photo { display: block; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .8, .2, 1); width: 100%; }
.program-tile:hover .program-tile-photo { transform: scale(1.035); }
.program-tile-object {
  bottom: -7px;
  filter: drop-shadow(0 12px 16px rgba(17, 22, 47, .3));
  height: auto;
  position: absolute;
  right: -8px;
  transform: rotate(5deg);
  width: 48%;
  z-index: 2;
}
.program-tile:nth-child(2) .program-tile-object { bottom: -4px; left: -5px; right: auto; transform: rotate(-7deg); width: 58%; }
.program-tile-signal {
  align-items: center;
  backdrop-filter: blur(13px);
  background: rgba(255, 255, 255, .84);
  border-radius: 999px;
  bottom: 12px;
  color: var(--brand-night);
  display: flex;
  font-size: 6px;
  font-weight: 800;
  gap: 6px;
  left: 12px;
  padding: 7px 9px;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}
.program-tile-signal i { animation: phone-live 1.4s ease-in-out infinite; background: var(--brand-coral); border-radius: 50%; height: 5px; width: 5px; }

.program-math-board {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 95, 122, .2), transparent 25%),
    linear-gradient(145deg, #f2efff, #fff7fa);
  display: flex;
  flex-direction: column;
  inset: 0;
  padding: 24px;
  position: absolute;
}
.program-math-board::before {
  border: 1px solid rgba(91, 77, 242, .13);
  border-radius: 50%;
  content: "";
  height: 150px;
  position: absolute;
  right: -75px;
  top: 55px;
  width: 150px;
}
.program-math-board > span { color: var(--brand-coral); font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.program-math-board > strong { font: 750 clamp(27px, 2.2vw, 38px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.06em; margin: auto 0 18px; position: relative; }
.program-math-board > div { align-items: center; display: flex; font-size: 7px; font-weight: 800; gap: 7px; }
.program-math-board > div i { align-items: center; background: var(--brand-coral); border-radius: 50%; color: #fff; display: flex; font-size: 6px; font-style: normal; height: 20px; justify-content: center; width: 20px; }
.program-math-board > small { color: #7c8297; font-size: 7px; line-height: 1.5; margin-top: 17px; }

.program-code-board {
  background: var(--brand-night);
  color: #fff;
  display: flex;
  flex-direction: column;
  inset: 0;
  padding: 15px;
  position: absolute;
}
.program-code-board > header { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .09); display: flex; gap: 5px; padding-bottom: 12px; }
.program-code-board > header i { background: #50587a; border-radius: 50%; height: 6px; width: 6px; }
.program-code-board > header i:first-child { background: var(--brand-coral); }
.program-code-board > header i:nth-child(2) { background: var(--brand-sun); }
.program-code-board > header i:nth-child(3) { background: var(--brand-ice); }
.program-code-board > header span { color: #7f89aa; font-size: 6px; margin-left: auto; }
.program-code-board code { display: grid; font-size: clamp(10px, 1vw, 14px); gap: 10px; line-height: 1.5; margin: auto 4px; }
.program-code-board code em { color: var(--brand-coral); font-style: normal; }
.program-code-board code b { color: var(--brand-ice); }
.program-code-board > footer { align-items: center; background: #20284f; border: 0; border-radius: 10px; display: flex; font-size: 6px; justify-content: space-between; margin: 0; min-height: 38px; padding: 0 11px; }
.program-code-board > footer i { color: var(--brand-ice); font-style: normal; }
.program-generic-board { align-content: center; display: grid; inset: 0; padding: 22px; position: absolute; }
.program-generic-board span { color: var(--program-accent); font-size: 42px; font-weight: 850; }
.program-generic-board strong { font-size: 16px; margin-top: 12px; }

.catalog-window .program-tile:not(:has(.public-program-visual)) > .program-tile-footer {
  align-items: center;
  border-top: 1px solid rgba(17, 22, 47, .1);
  display: flex;
  grid-row: auto;
  margin: 18px 0 0;
  padding: 15px 0 0;
  position: relative;
  z-index: 3;
}
.program-tile-footer > div { display: grid; gap: 2px; }
.catalog-window .program-tile-footer strong { color: inherit; font-size: 19px; letter-spacing: -.04em; }
.catalog-window .program-tile-footer small { color: #81889c; font-size: 12px; }
.catalog-window .program-tile-footer > a {
  align-items: center;
  background: var(--brand-night);
  border-radius: 11px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 14px;
  height: 38px;
  margin-left: auto;
  padding: 0 7px 0 13px;
  text-decoration: none;
  width: auto;
  min-height: 44px;
}
.program-tile-footer > a span { align-items: center; background: var(--brand-ice); border-radius: 7px; color: var(--brand-night); display: flex; height: 25px; justify-content: center; width: 25px; }

.catalog-window .program-deck .program-tile--english:nth-child(2) { background: #f0fbff; }
.catalog-window .program-deck .program-tile--mathematics { background: #fff7f9; }
.catalog-window .program-deck .program-tile--programming { background: var(--brand-night); border-color: #252e59; color: #fff; }
.program-tile--programming .program-tile-head > span,
.program-tile--programming .program-tile-copy > p,
.program-tile--programming .program-tile-footer small { color: #9fa8c7; }
.program-tile--programming .program-tile-head > b,
.program-tile--programming .program-tile-meta span { background: #20284f; border-color: rgba(255, 255, 255, .09); color: #c5cbea; }
.program-tile--programming .program-tile-footer { border-color: rgba(255, 255, 255, .1) !important; }
.catalog-window .program-tile--programming .program-tile-footer > a { background: var(--brand-ice); color: var(--brand-night); }
.catalog-window .program-tile--programming .program-tile-footer > a span { background: var(--brand-night); color: var(--brand-ice); }

@keyframes phone-panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phone-live {
  50% { box-shadow: 0 0 0 4px rgba(255, 95, 122, .13); opacity: .7; }
}

@media (max-width: 1180px) {
  .product-device-stage { justify-self: center; max-width: 980px; padding-left: 62px; width: 100%; }
  .product-phone { width: 220px; }
  .catalog-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(390px, .9fr); }
  .catalog-toolbar-control { align-content: start; }
  .catalog-window .program-deck { grid-template-columns: 1fr; }
  .catalog-window .program-tile h3 { font-size: clamp(31px, 4vw, 44px); }
}

@media (max-width: 760px) {
  .product-device-stage { padding: 0 0 165px; }
  .product-phone { bottom: 0; left: 13px; transform: rotate(-2deg); width: 178px; }
  .product-phone:hover,
  .product-phone:focus-within { transform: rotate(-1deg) translateY(-4px); }
  .phone-hardware { border-radius: 29px; border-width: 5px; }
  .catalog-toolbar { display: grid; gap: 20px; grid-template-columns: 1fr; min-height: 0; padding: 22px 16px; }
  .catalog-toolbar-copy > strong { font-size: 24px; margin-top: 10px; }
  .catalog-toolbar-copy > p { font-size: 14px; line-height: 1.6; }
  .catalog-toolbar .catalog-toolbar-control nav { overflow: visible; }
  .catalog-toolbar .catalog-toolbar-control button { grid-template-columns: 16px 1fr; min-height: 48px; padding: 8px; }
  .catalog-toolbar .catalog-toolbar-control button small { display: none; }
  .catalog-result-line { padding-inline: 16px; }
  .catalog-window .program-deck { gap: 8px; padding: 8px; }
  .catalog-window .program-deck .program-tile { border-radius: 17px; min-height: 0; padding: 15px; }
  .catalog-window .program-tile > .program-tile-body { grid-template-columns: 1fr; }
  .program-tile:nth-child(even) .program-tile-copy,
  .program-tile:nth-child(even) .program-tile-stage { grid-column: 1; grid-row: auto; }
  .program-tile-copy { min-height: 210px; padding: 8px 4px; }
  .catalog-window .program-tile h3 { font-size: clamp(31px, 9.5vw, 39px); }
  .catalog-window .program-tile-copy > p { font-size: 14px; line-height: 1.6; }
  .program-tile-stage { min-height: 270px; }
  .catalog-window .program-tile:not(:has(.public-program-visual)) > .program-tile-footer { margin-top: 14px; }
}

@media (max-width: 380px) {
  .product-device-stage { padding-bottom: 150px; }
  .product-phone { left: 8px; width: 164px; }
  .catalog-toolbar { padding-inline: 16px; }
  .catalog-toolbar .catalog-toolbar-control button { gap: 4px; grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 44px; padding: 8px 4px; text-align: center; }
  .catalog-toolbar .catalog-toolbar-control button i { grid-row: auto; }
  .catalog-toolbar .catalog-toolbar-control button span { font-size: 14px; }
  .program-tile-stage { min-height: 245px; }
  .catalog-window .program-tile-footer > a { font-size: 14px; gap: 6px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-phone,
  .catalog-toolbar .catalog-toolbar-control button { transition: none; }
  .phone-panel { animation: none; }
  .phone-lesson-card > span i { animation: none; }
}
