/* ===== How-to — Section 1: QUICK START ===== */
.ht-quickstart {
  background: linear-gradient(180deg, #fffdf3, #fff8e6);
  padding: clamp(56px, 7vw, 112px) 0;
  border-bottom: 1px solid #f0e2ac;
}
.ht-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.ht-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  color: #1f1f1f;
}
.ht-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.ht-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}
.ht-step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ht-step:hover,
.ht-step:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255,179,0,.18);
}

.ht-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #1f1f1f;
  background: #fff8d0;
  border: 2px solid #ffcb5e;
  box-shadow: 0 6px 14px rgba(255,179,0,.16);
  animation: num-pop .5s ease both;
}

.ht-media {
  width: 120px; height: 84px; border-radius: 12px;
  overflow: hidden; border: 2px solid #ffecb3;
}
.ht-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.ht-body { min-width: 0; }
.ht-title { margin: 0 0 6px; font-size: 1.12rem; color: #1f1f1f; }
.ht-body p { margin: 0 0 8px; color: #333; }
.ht-mini { margin: 6px 0 0; }
.ht-points { margin: 0; padding-left: 18px; color: #333; }
.ht-points li { margin: 6px 0; }

/* CTA row */
.ht-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* Connector line along left (container-only animation) */
.ht-steps { position: relative; }
.ht-steps::before {
  content: "";
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #ffe08a, #ffcb5e);
  transform-origin: top center; transform: scaleY(0);
  animation: line-grow .8s ease forwards .2s;
}

/* Responsive */
@media (max-width: 820px) {
  .ht-step { grid-template-columns: auto 1fr; }
  .ht-media { display: none; } /* компактно на телефонах */
}
@media (max-width: 480px) {
  .ht-num { width: 36px; height: 36px; }
}

/* ===== Container-only animations ===== */
@keyframes num-pop {
  0%   { transform: scale(.85); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes line-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ht-steps::before,
  .ht-num { animation: none !important; }
}
/* ===== How-to — Section 2: PRACTICE MODE & TIPS ===== */
.ht-practice {
  background: #fffdf3;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #eee3b8;
}
.practice-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.practice-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
  color: #1f1f1f;
}
.practice-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.practice-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}
@media (max-width: 980px) { .practice-grid { grid-template-columns: 1fr; } }

.practice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  transition: transform .22s ease, box-shadow .22s ease;
}
.practice-card:hover,
.practice-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(255,179,0,.18); }

.practice-media {
  width: 120px; height: 84px; border-radius: 12px; overflow: hidden;
  border: 2px solid #ffecb3; flex-shrink: 0;
}
.practice-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.practice-title { margin: 0 0 6px; font-size: 1.12rem; color: #1f1f1f; }
.practice-body p { margin: 0 0 8px; color: #333; }
.practice-points { margin: 0 0 10px; padding-left: 0; list-style: none; color: #333; }
.practice-points .tip-check {
  position: relative; padding-left: 26px; margin: 6px 0;
}
.practice-points .tip-check::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #ffcb5e; background: #fff9df;
}
.practice-points .tip-check::after {
  content: ""; position: absolute; left: 5px; top: 9px;
  width: 8px; height: 2px; border-radius: 2px; background: #ffb300;
  transform-origin: left center; transform: scaleX(0);
  animation: check-sweep .45s ease forwards .25s;
}

/* Meter (container-only animation) */
.practice-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #fff3c8;
  border: 1px solid #efdca0;
  overflow: hidden;
}
.practice-fill {
  --val: .70; /* default */
  display: block; height: 100%;
  width: 0%; /* grows to var(--val) */
  background: linear-gradient(90deg, #ffd98a 0%, #ffcc6a 55%, #ffe7ad 100%);
  box-shadow: inset 0 0 0 1px rgba(255,210,120,.55), 0 1px 0 rgba(255,255,255,.5);
  border-radius: inherit;
  animation: progress-grow .9s ease forwards .15s;
}
.val-40 { --val: .40; }
.val-50 { --val: .50; }
.val-60 { --val: .60; }
.val-70 { --val: .70; }
.val-80 { --val: .80; }
@keyframes progress-grow {
  from { width: 0%; }
  to   { width: calc(var(--val) * 100%); }
}

/* Tips column */
.tips-list { display: grid; gap: 12px; }
.tip-card {
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(255,179,0,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tip-card:hover,
.tip-card:focus-within { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,179,0,.16); }
.tip-title { margin: 0 0 6px; font-size: 1.02rem; color: #1f1f1f; }

/* underline on tip titles */
@keyframes tip-underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.underline-sweep .tip-title {
  position: relative; display: inline-block; padding-bottom: 4px;
}
.underline-sweep .tip-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffe08a, #ffcb5e);
  transform-origin: left center; transform: scaleX(0);
  animation: tip-underline .6s ease forwards .1s;
}

/* Container pulse for the practice panel */
@keyframes practice-glow-kf {
  0%,100% { border-color: #f1e5b2; }
  50%     { border-color: #ffd980; }
}
.practice-glow { animation: practice-glow-kf 3s ease-in-out infinite; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .practice-points .tip-check::after,
  .underline-sweep .tip-title::after,
  .practice-glow,
  .practice-fill { animation: none !important; width: calc(var(--val) * 100%); }
}

/* Reuse from earlier */
@keyframes check-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ===== How-to — Section 3: PATTERNS & OBSTACLES ===== */
.ht-patterns {
  background: #fff8e6;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #f0e2ac;
}
.patterns-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.patterns-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
  color: #1f1f1f;
}
.patterns-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.pat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}
@media (max-width: 900px) { .pat-grid { grid-template-columns: 1fr; } }

.pat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pat-card:hover,
.pat-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(255,179,0,.18); }

.pat-media {
  width: 120px; height: 84px; border-radius: 12px; overflow: hidden;
  border: 2px solid #ffecb3; flex-shrink: 0;
}
.pat-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.pat-title {
  margin: 0 0 6px; font-size: 1.12rem; color: #1f1f1f;
  position: relative; display: inline-block; padding-bottom: 4px;
}
.pat-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #ffe08a, #ffcb5e);
  transform-origin: left center; transform: scaleX(0);
  animation: title-mark .6s ease forwards .15s;
}

.pat-body p { margin: 0 0 8px; color: #333; }
.pat-points { margin: 0; padding-left: 18px; color: #333; }
.pat-points li { margin: 6px 0; }

/* Tip badge */
.tip-pill {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 20px; padding: 0 6px;
  margin-right: 6px; font-size: .78rem; font-weight: 700; line-height: 1;
  color: #1f1f1f; background: #fff8d0; border: 1px solid #ffcb5e; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,179,0,.14);
  animation: hint-pulse 2.6s ease-in-out infinite;
}

/* Callout */
.pat-callout {
  margin: clamp(14px, 2.5vw, 22px) auto 0;
  max-width: 860px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(255,179,0,.10);
  color: #3a3a3a;
}

/* CTA */
.pat-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* ===== Container-only animations ===== */
/* Сканирующая полоска по карточке */
@keyframes lane-scan-kf {
  0%   { transform: translateX(-120%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.lane-scan::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,224,138,.0) 30%, rgba(255,224,138,.35) 50%, rgba(255,224,138,.0) 70%);
  transform: translateX(-120%); opacity: 0; pointer-events: none;
}
.lane-scan:hover::before,
.lane-scan:focus-within::before {
  animation: lane-scan-kf .9s ease;
}

/* Пульс подсказки */
@keyframes hint-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Подчёркивание заголовка */
@keyframes title-mark {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tip-pill,
  .pat-title::after { animation: none !important; }
}
/* ===== How-to — Section 4: GESTURE TUNING ===== */
.ht-gestures {
  background: #fffdf3;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #eee3b8;
}
.gestures-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.gestures-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
  color: #1f1f1f;
}
.gestures-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.gestures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}
@media (max-width: 1060px) { .gestures-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .gestures-grid { grid-template-columns: 1fr; } }

.gst-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform, box-shadow, border-color;
}
.gst-card:hover,
.gst-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(255,179,0,.18); }

.gst-media {
  width: 120px; height: 84px; border-radius: 12px; overflow: hidden;
  border: 2px solid #ffecb3; flex-shrink: 0;
}
.gst-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.gst-title { margin: 0 0 6px; font-size: 1.12rem; color: #1f1f1f; }
.gst-body p { margin: 0 0 8px; color: #333; }

/* Forms */
.gst-form { display: grid; gap: 8px; }

.gst-label { font-weight: 600; color: #1f1f1f; }
.gst-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 12px; border-radius: 999px;
  background: #fff3c8; border: 1px solid #efdca0; outline: none;
}
.gst-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #ffcb5e; border: 2px solid #e0a400;
  box-shadow: 0 6px 14px rgba(255,179,0,.16);
}
.gst-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffcb5e; border: 2px solid #e0a400;
  box-shadow: 0 6px 14px rgba(255,179,0,.16);
}
.gst-hints {
  display: flex; justify-content: space-between;
  font-size: .9rem; color: #6b5f2e;
}

/* Radios */
.gst-fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.gst-radio { display: grid; grid-auto-flow: column; align-items: center; gap: 6px; }
.gst-radio input { width: 18px; height: 18px; }
.gst-radio span { padding: 4px 8px; border-radius: 8px; background: #fff8d0; border: 1px solid #ffcb5e; }

/* Switches */
.gst-switch { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.switch-ui {
  width: 44px; height: 26px; border-radius: 999px; position: relative;
  background: #fff3c8; border: 1px solid #efdca0; display: inline-block;
}
.switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffcb5e; border: 2px solid #e0a400;
  transition: transform .18s ease;
}
.gst-switch input { position: absolute; opacity: 0; }
.gst-switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch-label { color: #333; }

/* CTA */
.gestures-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* ===== Container-only animations ===== */
@keyframes dial-sweep-kf {
  0%,100% { border-color: #f1e5b2; }
  50%     { border-color: #ffd980; }
}
.dial-sweep { animation: dial-sweep-kf 3s ease-in-out infinite; }

@keyframes zone-glow-kf {
  0%   { box-shadow: 0 0 0 0 rgba(255,203,94,0); }
  60%  { box-shadow: 0 0 0 8px rgba(255,203,94,.16); }
  100% { box-shadow: 0 0 0 0 rgba(255,203,94,0); }
}
.zone-glow { animation: zone-glow-kf 1.6s ease; }

@keyframes switch-pop-kf {
  0% { transform: scale(.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.switch-pop { animation: switch-pop-kf .6s ease; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .dial-sweep,
  .zone-glow,
  .switch-pop { animation: none !important; }
}
/* ===== How-to — Section 5: POWER-UP SYNERGY ===== */
.ht-powerups {
  background: #fffdf3;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #eee3b8;
}
.powerups-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.powerups-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
  color: #1f1f1f;
}
.powerups-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.pu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}
@media (max-width: 1024px) { .pu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .pu-grid { grid-template-columns: 1fr; } }

.pu-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform, box-shadow, border-color;
}
.pu-card:hover,
.pu-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(255,179,0,.18); }

.pu-media {
  width: 84px; height: 84px; border-radius: 16px; overflow: hidden;
  border: 2px solid #ffecb3; flex-shrink: 0;
}
.pu-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.pu-title { margin: 0 0 6px; font-size: 1.06rem; color: #1f1f1f; }
.pu-body p { margin: 0 0 8px; color: #333; }
.pu-points { margin: 0; padding-left: 18px; color: #333; }
.pu-points li { margin: 6px 0; }

/* Badge */
.perk-badge {
  display: inline-grid; place-items: center;
  height: 18px; min-width: 40px; padding: 0 6px; margin-right: 6px;
  font-size: .72rem; font-weight: 700; line-height: 1;
  color: #1f1f1f; background: #fff8d0; border: 1px solid #ffcb5e; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,179,0,.14);
  animation: badge-pop 2.8s ease-in-out infinite;
}

/* Combos row */
.pu-combos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(12px, 2.6vw, 20px);
  margin-top: clamp(16px, 3vw, 28px);
}
@media (max-width: 900px) { .pu-combos { grid-template-columns: 1fr; } }

.combo-card {
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(255,179,0,.10);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.combo-card:hover,
.combo-card:focus-within { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,179,0,.16); }
.combo-title { margin: 0 0 6px; font-size: 1.02rem; color: #1f1f1f; }

/* CTA */
.pu-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* ===== Container-only animations ===== */
@keyframes perk-glow {
  0%,100% { border-color: #f1e5b2; }
  50%     { border-color: #ffd980; }
}
.perk-glow { animation: perk-glow 3s ease-in-out infinite; }

@keyframes badge-pop {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}

/* лёгкая «свип»-подсветка по комбо-карточке */
@keyframes sweep-line-kf {
  0%   { transform: translateX(-120%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.sweep-line::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,224,138,.0) 30%, rgba(255,224,138,.35) 50%, rgba(255,224,138,.0) 70%);
  transform: translateX(-120%); opacity: 0; pointer-events: none;
}
.sweep-line:hover::after,
.sweep-line:focus-within::after { animation: sweep-line-kf .9s ease; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .perk-glow,
  .perk-badge,
  .sweep-line::after { animation: none !important; }
}
/* ===== How-to — Section 6: OFFLINE & BATTERY TIPS ===== */
.ht-offline {
  background: #fff8e6;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #f0e2ac;
}
.offline-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.offline-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
  color: #1f1f1f;
}
.offline-sub { margin: 0 auto; max-width: 62ch; color: #474747; }

.off-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}
@media (max-width: 1024px) { .off-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .off-grid { grid-template-columns: 1fr; } }

.off-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #f1e5b2;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  box-shadow: 0 10px 28px rgba(255,179,0,.10);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.off-card:hover,
.off-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(255,179,0,.18); }

.off-media {
  width: 84px; height: 84px; border-radius: 16px; overflow: hidden;
  border: 2px solid #ffecb3; flex-shrink: 0;
}
.off-media img { width: 100%; height: 100%; object-fit: cover; } /* ⛔ no image animations */

.off-title {
  margin: 0 0 6px; font-size: 1.06rem; color: #1f1f1f;
  position: relative; display: inline-block; padding-bottom: 4px;
}
.off-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #ffe08a, #ffcb5e);
  transform-origin: left center; transform: scaleX(0);
  animation: tip-underline .6s ease forwards .15s;
}
.off-body p { margin: 0 0 8px; color: #333; }
.off-points { margin: 0; padding-left: 18px; color: #333; }
.off-points li { margin: 6px 0; }

/* Reuse switches from gestures */
.off-form { display: grid; gap: 8px; margin-top: 6px; }

/* CTA */
.off-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* ===== Container-only animations ===== */
@keyframes panel-glow-kf {
  0%,100% { border-color: #f1e5b2; }
  50%     { border-color: #ffd980; }
}
.panel-glow { animation: panel-glow-kf 3s ease-in-out infinite; }

/* лёгкая «искрящаяся» линия по карточке при hover */
@keyframes spark-line-kf {
  0%   { transform: translateX(-120%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.off-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,224,138,.0) 30%, rgba(255,224,138,.35) 50%, rgba(255,224,138,.0) 70%);
  transform: translateX(-120%); opacity: 0; pointer-events: none;
}
.off-card:hover::after,
.off-card:focus-within::after { animation: spark-line-kf .9s ease; }

/* underline animation for titles */
@keyframes tip-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .panel-glow,
  .off-card::after,
  .off-title::after { animation: none !important; }
}
/* ==== Fix: How-to → Gesture tuning (overflow on small screens) ==== */

/* 1) Не даём внутренностям распирать карточку */
.ht-gestures .gst-card,
.ht-gestures .gst-card > *,
.ht-gestures .gst-body,
.ht-gestures .gst-form { min-width: 0; }

/* 2) Слайдер тянется ровно по ширине карточки, без встроенных отступов браузера */
.ht-gestures .gst-range {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;                  /* убираем UA-отступы, из-за них был «вынос» вправо */
  box-sizing: border-box;
}

/* 3) Подписи под слайдером не ломают строку и могут переноситься */
.ht-gestures .gst-hints {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;            /* разрешаем перенос вместо переполнения */
}
.ht-gestures .gst-hints span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

/* 4) На узких экранах складываем карточки в одну колонку и даём превью 16:9 */
@media (max-width: 620px) {
  .ht-gestures .gst-card { grid-template-columns: 1fr; }
  .ht-gestures .gst-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
}

/* 5) Доп. уплотнение на очень узких экранах */
@media (max-width: 420px) {
  .ht-gestures .gst-card { padding: 12px; border-radius: 14px; }
  .ht-gestures .gestures-grid { gap: 12px; }
}

/* 6) На всякий — не позволяем переключателям/радио распирать ширину */
.ht-gestures .gst-switch,
.ht-gestures .gst-radio { min-width: 0; }
/* ==== Fix: How-to → Offline & battery tips overflow ==== */

/* 1) Не даём контенту распирать карточку и обрезаем эффект ::after */
.ht-offline .off-card,
.ht-offline .off-card > *,
.ht-offline .off-body { min-width: 0; }
.ht-offline .off-card { overflow: hidden; } /* клип для spark-line */

/* 2) Пораньше складываем карточку в одну колонку и делаем превью шапкой */
@media (max-width: 760px) {
  .ht-offline .off-card { grid-template-columns: 1fr; }
  .ht-offline .off-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .ht-offline .off-grid { gap: 12px; }
  .ht-offline .off-card { padding: 12px; border-radius: 14px; }
}

/* 3) На всякий — заголовки и текст могут переноситься без горизонтального скролла */
.ht-offline .off-title,
.ht-offline .off-body p,
.ht-offline .off-points { overflow-wrap: anywhere; }
/* ==== FINAL FIX: How-to → Gesture tuning overflow ==== */

/* секция не даёт прокручиваться по X */
.ht-gestures { overflow-x: hidden; }

/* карточка и содержимое могут сжиматься и не распирают грид */
.ht-gestures .gst-card,
.ht-gestures .gst-card > *,
.ht-gestures .gst-body,
.ht-gestures .gst-form { min-width: 0; }

/* обрезаем всё, что выходит за рамку карточки (тени/эффекты/дефолтные края инпутов) */
.ht-gestures .gst-card { overflow: hidden; }
@supports (overflow: clip) {
  .ht-gestures .gst-card { overflow: clip; } /* WebKit любит clip */
}

/* медиаблок — на 100% ширины, безопасное соотношение на телефонах */
@media (max-width: 620px) {
  .ht-gestures .gst-card { grid-template-columns: 1fr; }
  .ht-gestures .gst-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .ht-gestures .gst-card { padding: 12px; border-radius: 14px; }
}

/* range: убираем все встроенные поля, чтобы трек не вылезал за края */
.ht-gestures .gst-range {
  -webkit-appearance: none; appearance: none;
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  margin: 0; padding: 0;          /* ← ключевое: Safari имел внутренние поля */
  box-sizing: border-box;
  border: 0;
}
.ht-gestures .gst-range::-webkit-slider-runnable-track { height: 12px; }
.ht-gestures .gst-range::-moz-range-track { height: 12px; }

/* подписи под слайдером не распирают строку */
.ht-gestures .gst-hints { flex-wrap: wrap; gap: 6px; }
.ht-gestures .gst-hints span { flex: 1 1 30%; min-width: 0; text-align: center; overflow-wrap: anywhere; }

/* на всякий — кнопки/радио/свитчи не шире контейнера */
.ht-gestures .gst-switch,
.ht-gestures .gst-radio,
.ht-gestures .gst-switch .switch-ui,
.ht-gestures .gst-radio span { max-width: 100%; }
/* ===== Section 7: SCORE & STREAKS ===== */
.ht-score {
  background: #fffdf3;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid #eee3b8;
}
.score-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.score-head h2 { margin: 0 0 10px; font-size: clamp(1.6rem,1.1rem+1.5vw,2.2rem); color:#1f1f1f; }
.score-sub { margin: 0 auto; max-width:62ch; color:#474747; }

.score-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px,3vw,28px);
  align-items: stretch;
}
@media (max-width: 860px){ .score-grid{ grid-template-columns: 1fr; } }

.score-card {
  display:grid; grid-template-columns:auto 1fr; gap:14px;
  background:#fff; border:1px solid #f1e5b2; border-radius:18px;
  padding: clamp(14px,2.2vw,20px);
  box-shadow:0 10px 28px rgba(255,179,0,.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform, box-shadow, border-color;
  min-width:0;
}
.score-card:hover, .score-card:focus-within{ transform: translateY(-4px); box-shadow:0 16px 36px rgba(255,179,0,.18); }
.score-media{ width:84px; height:84px; border-radius:16px; overflow:hidden; border:2px solid #ffecb3; flex-shrink:0; }
.score-media img{ width:100%; height:100%; object-fit:cover; } /* ⛔ no image animations */
.score-title{ margin:0 0 6px; font-size:1.06rem; color:#1f1f1f; }
.score-points{ margin:0; padding-left:18px; color:#333; }
.score-points li{ margin:6px 0; }

/* Meters */
.score-meter{
  position:relative; height:12px; border-radius:999px; background:#fff3c8; border:1px solid #efdca0; overflow:hidden;
}
.score-fill{
  --val:.60;
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg,#ffd98a 0%, #ffcc6a 55%, #ffe7ad 100%);
  box-shadow: inset 0 0 0 1px rgba(255,210,120,.55), 0 1px 0 rgba(255,255,255,.5);
  border-radius:inherit;
  animation: meter-grow .9s ease forwards .15s;
}
.val-60{ --val:.60; } .val-40{ --val:.40; } .val-80{ --val:.80; }
@keyframes meter-grow{ from{width:0%} to{ width: calc(var(--val)*100%);} }

.mult-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.m-pill{
  display:inline-grid; place-items:center;
  min-width:44px; height:24px; padding:0 8px; border-radius:999px;
  font-weight:700; font-size:.86rem; color:#1f1f1f;
  background:#fff8d0; border:1px solid #ffcb5e; box-shadow:0 6px 14px rgba(255,179,0,.14);
}
.m-pill.hot{ background:#ffe199; }
.m-pill.cap{ background:#ffd67a; }

/* container-only spark/glow */
@keyframes spark-border-kf{ 0%,100%{border-color:#f1e5b2;} 50%{border-color:#ffd980;} }
.spark-border{ animation: spark-border-kf 3s ease-in-out infinite; }
@keyframes glow-panel-kf{ 0%,100%{box-shadow:0 10px 28px rgba(255,179,0,.10);} 50%{box-shadow:0 14px 34px rgba(255,179,0,.18);} }
.glow-panel{ animation: glow-panel-kf 2.8s ease-in-out infinite; }

/* ===== Section 8: NO PAYWALLS ===== */
.ht-free{
  background:#fff8e6;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top:1px solid #f0e2ac;
}
.free-head{ text-align:center; margin-bottom: clamp(22px,3vw,36px); }
.free-head h2{ margin:0 0 10px; font-size: clamp(1.6rem,1.1rem+1.5vw,2.2rem); color:#1f1f1f; }
.free-sub{ margin:0 auto; max-width:62ch; color:#474747; }
.free-grid{ display:grid; grid-template-columns:1fr 1fr; gap: clamp(16px,3vw,28px); }
@media (max-width: 820px){ .free-grid{ grid-template-columns:1fr; } }

.free-card{
  display:grid; grid-template-columns:auto 1fr; gap:14px;
  background:#fff; border:1px solid #f1e5b2; border-radius:18px;
  padding: clamp(14px,2.2vw,20px);
  box-shadow:0 10px 28px rgba(255,179,0,.10);
  transition: transform .22s ease, box-shadow .22s ease; min-width:0;
}
.free-card:hover, .free-card:focus-within{ transform: translateY(-4px); box-shadow:0 16px 36px rgba(255,179,0,.18); }
.free-media{ width:84px; height:84px; border-radius:16px; overflow:hidden; border:2px solid #ffecb3; flex-shrink:0; }
.free-media img{ width:100%; height:100%; object-fit:cover; } /* ⛔ */
.free-title{ margin:0 0 6px; font-size:1.06rem; color:#1f1f1f; }
.free-points{ margin:0; padding-left:18px; color:#333; }
.free-points li{ margin:6px 0; }

@keyframes pledge-glow-kf{ 0%,100%{border-color:#f1e5b2;} 50%{border-color:#ffd980;} }
.pledge-glow{ animation: pledge-glow-kf 3s ease-in-out infinite; }

/* ===== Section 9: HOW-TO FAQ ===== */
.ht-faq{
  background:#fffdf3;
  padding: clamp(48px,6vw,96px) 0;
  border-top:1px solid #eee3b8;
}
.faq-head{ text-align:center; margin-bottom: clamp(22px,3vw,36px); }
.faq-head h2{ margin:0 0 10px; font-size: clamp(1.6rem,1.1rem+1.5vw,2.2rem); color:#1f1f1f; }
.faq-sub{ margin:0 auto; max-width:62ch; color:#474747; }

.faq-list{ display:grid; gap:12px; }
.faq-item{
  background:#fff; border:1px solid #f1e5b2; border-radius:14px;
  padding: 10px 12px;
  box-shadow:0 8px 24px rgba(255,179,0,.10);
}
.faq-item[open]{ box-shadow:0 12px 28px rgba(255,179,0,.16); }
.faq-q{ list-style:none; cursor:pointer; font-weight:700; color:#1f1f1f; position:relative; padding-right:28px; }
.faq-q::-webkit-details-marker{ display:none; }
.faq-q::after{
  content: "▾"; position:absolute; right:6px; top:0; color:#6b5f2e;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after{ transform: rotate(180deg); }
.faq-a{ color:#333; margin-top:6px; }

/* ===== Section 10: DOWNLOAD CTA ===== */
.ht-download{
  background:#fff8e6;
  padding: clamp(48px,6vw,96px) 0;
  border-top:1px solid #f0e2ac;
}
.download-head{ text-align:center; margin-bottom: clamp(18px,2.6vw,28px); }
.download-head h2{ margin:0 0 8px; font-size: clamp(1.6rem,1.1rem+1.5vw,2.2rem); color:#1f1f1f; }
.download-sub{ margin:0 auto; max-width:62ch; color:#474747; }
.download-panel{
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
  padding:14px; border:1px solid #f1e5b2; border-radius:18px; background:#fff;
  box-shadow:0 10px 28px rgba(255,179,0,.10);
}
@keyframes pulse-shadow-kf{ 0%,100%{ box-shadow:0 10px 28px rgba(255,179,0,.10);} 50%{ box-shadow:0 16px 36px rgba(255,179,0,.18);} }
.pulse-shadow{ animation: pulse-shadow-kf 3.2s ease-in-out infinite; }

/* XS safety for all new blocks */
@media (max-width: 480px){
  .score-card, .free-card { grid-template-columns: 1fr; padding:12px; border-radius:14px; }
  .score-media, .free-media{ width:100%; height:auto; aspect-ratio:16/9; border-radius:12px; }
  .score-grid, .free-grid{ gap:12px; }
}
/* ==== Fix: How-to → Score & streaks overflow on small screens ==== */

/* секция не даёт горизонтально скроллиться */
.ht-score { overflow-x: hidden; }

/* грид-дети не распирают карточку */
.ht-score .score-card,
.ht-score .score-card > *,
.ht-score .score-body { min-width: 0; }

/* обрезаем всё, что может выйти за рамку (в т.ч. из-за box-shadow/pseudo) */
.ht-score .score-card { overflow: hidden; }
@supports (overflow: clip) { .ht-score .score-card { overflow: clip; } }

/* раньше складываем контент в одну колонку и даём безопасное превью */
@media (max-width: 680px) {
  .ht-score .score-card { grid-template-columns: 1fr; padding: 12px; border-radius: 14px; }
  .ht-score .score-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .ht-score .score-grid { gap: 12px; }
}

/* страховка для изображений */
.ht-score .score-media img {
  display: block;        /* убираем baseline-щель */
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;       /* ⛔ исключает «вылет» */
}
/* ==== Fix: How-to → No paywalls (overflow) ==== */
.ht-free { overflow-x: hidden; }

.ht-free .free-card,
.ht-free .free-card > *,
.ht-free .free-body { min-width: 0; }   /* дети не распирают грид */
.ht-free .free-card { overflow: hidden; } /* обрезаем рамки/тени внутри */
@supports (overflow: clip) {
  .ht-free .free-card { overflow: clip; }
}

/* раньше складываем в 1 колонку и делаем превью шапкой */
@media (max-width: 720px) {
  .ht-free .free-card {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 14px;
  }
  .ht-free .free-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .ht-free .free-grid { gap: 12px; }
}

/* страховка для изображений */
.ht-free .free-media img {
  display: block;      /* убираем baseline-щель */
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;     /* исключает «вылет» */
}
