:root {
  color-scheme: light;
  --ink: #1d1930;
  --muted: #585568;
  --line: #dedbe7;
  --purple: #5836ad;
  --purple-dark: #432783;
  --paper: #fff;
  --tint: #f7f5fb;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--purple-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #8658dc; outline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
h1, h2 { line-height: 1.04; letter-spacing: -.055em; }
h1 { font-size: clamp(2.45rem, 5.4vw, 4.65rem); max-width: 12ch; }
h1 em { color: var(--purple); font-style: normal; }
h2 { font-size: clamp(2rem, 4.1vw, 3.45rem); }
h3 { line-height: 1.2; }
.wrap { width: min(100% - 3rem, 80rem); margin-inline: auto; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.55rem; font-weight: 900; letter-spacing: -.09em; white-space: nowrap; }
.brand b { color: var(--purple); }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .5rem; background: var(--purple); }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.35rem; }
nav a { color: inherit; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--purple); text-decoration: underline; }
.socials { gap: .25rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--purple-dark); border: 1px solid #e8e1f3; border-radius: 50%; background: #f7f4fb; }
.socials a:hover { color: var(--purple-dark); border-color: #cab8ed; background: #eae4fa; }
.socials svg, .telegram-button svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.hero-shell { background: radial-gradient(ellipse at 87% 2%, #eee7fc 0%, #f8f5fe 30%, #fff 65%); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.hero p { max-width: 36ch; font-size: 1.14rem; margin-top: 1.35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 720; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--purple); }
.primary:hover { background: var(--purple-dark); }
.secondary { color: var(--purple-dark); background: white; border-color: var(--line); }
.secondary:hover { border-color: var(--purple); }
.telegram-button { gap: .5rem; border-color: #e3d8f6; background: #f3edfc; }
.telegram-button:hover { background: #eae1fa; }
.stat { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.65rem; padding: .5rem .85rem .5rem .55rem; border-radius: 3rem; background: #f0eafa; color: var(--purple-dark); font-size: .94rem; line-height: 1.25; }
.stat strong { font-weight: 850; }
.stat small { display: block; margin-top: .13rem; color: var(--muted); font-size: .82rem; }
.stat-icon { flex: 0 0 2rem; display: grid; place-items: center; height: 2rem; border-radius: 50%; color: white; background: var(--purple); font-size: .7rem; }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.35rem); padding: 1rem .5rem; }
.showcase a { display: grid; min-width: 0; align-content: start; gap: .85rem; overflow-wrap: anywhere; text-align: center; text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.showcase-screen { display: block; overflow: hidden; border-radius: calc(var(--phone-radius) - 5px); }
.showcase img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; }
.showcase a:hover .showcase-title { text-decoration: underline; }
.showcase a:first-child .phone { transform: rotate(-4deg); }
.showcase a:nth-child(2) .phone { transform: translateY(-.65rem); }
.showcase a:last-child .phone { transform: rotate(4deg); }
.phone { --phone-radius: clamp(.8rem, 2.4vw, 1.55rem); position: relative; display: block; padding: 3px; border: 2px solid #49484d; border-radius: var(--phone-radius); background: #1c1c1e; box-shadow: 0 16px 27px -12px #23193b66, 0 2px 6px #23193b26; }
.phone::before { content: ""; position: absolute; z-index: 1; pointer-events: none; top: 3%; left: 50%; transform: translateX(-50%); width: 25%; height: 3.2%; border-radius: 2rem; background: #000; outline: 1px solid #ffffff0e; }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.catalog { background: var(--tint); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.exercise-group { margin-top: 2rem; }
.exercise-group > h3 { font-size: 1.35rem; margin-bottom: .85rem; }
.exercise-grid, .tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.exercise { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-content: start; gap: 1rem; padding: 1rem; border-radius: 1rem; background: white; color: var(--ink); text-decoration: none; box-shadow: 0 5px 18px #2415420d; }
.exercise-thumb { display: block; overflow: hidden; border-radius: 12px; }
.exercise img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; background: #261b3b; }
.exercise h4 { margin: 0; font-size: 1rem; line-height: 1.24; }
.exercise p { margin-top: .4rem; font-size: .9rem; line-height: 1.35; }
.watch { display: inline-flex; align-items: center; margin-top: .7rem; padding: .3rem .6rem; border-radius: 2rem; background: #f1ebfc; color: var(--purple-dark); font-size: .88rem; font-weight: 750; }
.play { font-size: .73em; margin-right: .25rem; }
.tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tariff { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.6rem); background: white; }
.tariff-featured { border-color: #b6a2e3; background: #f3edfd; }
.tariff-top { display: flex; justify-content: space-between; align-items: start; gap: .6rem; flex-wrap: wrap; }
.tariff-badge { padding: .25rem .65rem; border-radius: 2rem; color: var(--purple-dark); background: #e6daf9; font-size: .83rem; font-weight: 750; }
.tariff h3, .tariff p { margin-top: .4rem; }
.amount { font-size: clamp(2.15rem, 4.8vw, 3.35rem); line-height: 1.05; font-weight: 900; color: var(--purple-dark); white-space: nowrap; }
.amount small { font-size: 1rem; font-weight: 650; }
.terms { max-width: 72ch; margin-top: 1.25rem; }
.terms p + p { margin-top: .65rem; }
.terms strong { color: var(--ink); }
.calculation { position: relative; display: flex; align-items: center; gap: .45rem; margin-block: .4rem .65rem; }
.price-help { position: relative; flex: none; }
.price-help button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--purple-dark); background: white; font-weight: 750; cursor: help; }
.price-help button:hover, .price-help button:focus-visible { background: #eae4fa; }
.price-help p { position: absolute; z-index: 1; inset: 50% auto auto calc(100% + .55rem); transform: translateY(-50%); width: 16rem; padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: white; box-shadow: 0 .4rem 1rem #1d193018; pointer-events: none; }
.services { margin-top: 2rem; }
.services dl { margin: .75rem 0 0; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .95rem clamp(.8rem, 2vw, 1.25rem); }
.service + .service { border-top: 1px solid var(--line); }
.service:nth-child(odd) { background: var(--tint); }
.service dt { font-weight: 730; }
.service dd { margin: 0; color: #484553; }
.service .service-cost { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--purple-dark); font-weight: 850; white-space: nowrap; }
footer { background: var(--tint); border-top: 1px solid var(--line); }
.footer { padding-block: 1.5rem; flex-wrap: wrap; }
body:has(#player[open]) { overflow: hidden; }
#player { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; overflow: auto; background: transparent; color: white; }
#player[open] { display: grid; place-items: center; }
#player::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(8px); }
.player-panel { position: relative; width: min(22rem, 100vw - 2rem, calc((100dvh - 9rem) * .5625 + 22px)); }
#player-title { min-height: 2.75rem; display: grid; align-items: center; margin-bottom: .65rem; color: white; text-align: center; font-size: clamp(1.05rem, 2.5vw, 1.4rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.player-phone { --phone-radius: 42px; padding: 8px; border: 3px solid transparent; background: linear-gradient(#242426, #141416) padding-box, linear-gradient(151deg, #77767e, #37373d 27%, #686770 51%, #28282d 84%, #494950) border-box; box-shadow: 0 30px 67px -12px #000d, 0 0 0 1px #ffffff1a; }
.player-phone::before { top: 17px; width: 23%; height: 16px; outline: 1px solid #ffffff19; }
.player-phone::after { content: ""; position: absolute; top: 23%; left: -7px; width: 3px; height: 8%; border-radius: 3px 0 0 3px; background: #6a696e; box-shadow: 0 36px #6a696e; pointer-events: none; }
.player-phone video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: contain; background: black; border-radius: 31px; }
.player-phone video::-webkit-media-controls { display: none !important; }
.iphone-screen { --feed-nav-height: clamp(42px, 7.5dvh, 56px); --feed-inset: 10px; position: relative; overflow: hidden; border-radius: 31px; isolation: isolate; }
.feed-overlay { position: absolute; inset: 0; color: white; pointer-events: none; }
.feed-overlay::before { content: ""; position: absolute; inset: auto 0 var(--feed-nav-height); height: 31%; background: linear-gradient(to top, #000e, #0008 46%, transparent); }
.feed-playback { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: white; cursor: pointer; pointer-events: auto; }
.feed-playback:focus-visible { outline-offset: -5px; border-radius: inherit; }
.feed-play-symbol { display: grid; place-items: center; width: clamp(1.75rem, 7vw, 2.75rem); aspect-ratio: 1; opacity: .7; }
.feed-play-symbol svg { width: 100%; fill: currentColor; filter: drop-shadow(0 2px 4px #000b); }
[data-paused="false"] .feed-play-symbol { visibility: hidden; }
.feed-author { position: absolute; left: var(--feed-inset); bottom: calc(var(--feed-nav-height) + 15px); color: white; font-size: clamp(.7rem, 2.4vw, .91rem); font-weight: 800; text-shadow: 0 1px 4px #000; }
.feed-actions { position: absolute; inset: 47.5% 14px 12% auto; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); place-items: center; --avatar-radius: 16px; }
.feed-actions > :nth-child(1) { transform: translateY(var(--avatar-radius)); }
.feed-actions > :nth-child(2) { transform: translateY(calc(var(--avatar-radius) * 2 / 3)); }
.feed-actions > :nth-child(3) { transform: translateY(calc(var(--avatar-radius) / 3)); }
.feed-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid white; border-radius: 50%; background: #080808; box-shadow: 0 1px 4px #0008; }
.feed-avatar img { width: 22px; height: auto; }
.feed-action { display: grid; justify-items: center; align-content: center; gap: .14rem; width: 32px; height: 34px; color: white; font-size: .57rem; line-height: 1; text-shadow: 0 1px 3px #000; }
.feed-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px #000b); }
.feed-progress { position: absolute; inset: auto var(--feed-inset) calc(var(--feed-nav-height) + 5px); height: 2px; border-radius: 5px; overflow: hidden; background: #777a; }
.feed-tabs { position: absolute; inset: auto 0 0; height: var(--feed-nav-height); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding: 5px 5px 0; background: black; color: white; }
.feed-tabs > span { display: grid; justify-items: center; gap: 2px; font-size: clamp(7px, 2.3vw, 10px); line-height: 1.1; }
.feed-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-tabs .feed-tab-center { justify-self: center; align-items: center; width: 78%; max-width: 38px; height: 27px; border-radius: 8px; background: #c9b3f1; color: #22123e; }
.feed-tab-center svg { width: 17px; height: 17px; fill: currentColor; }
.feed-progress span { display: block; width: 100%; height: 100%; background: white; transform: scaleX(.24); transform-origin: left center; animation: feed-progress 18s linear infinite paused; }
[data-paused="false"] .feed-progress span { animation-play-state: running; }
@keyframes feed-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .feed-progress span { animation: none; } }
.player-dismiss { position: absolute; z-index: 2; top: 0; left: calc(100% + .8rem); margin: 0; }
.close { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #ffffff65; border-radius: 50%; background: #ffffff28; color: white; cursor: pointer; }
.close::before, .close::after { content: ""; grid-area: 1 / 1; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.close:hover { background: #ffffff45; }
#player-error { position: absolute; z-index: 1; inset: auto 1rem 2rem; padding: .6rem; border-radius: .55rem; background: #29282d; color: white; font-size: .9rem; }
#player-error a { color: white; }
.skip:not(:focus), .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1; top: .5rem; left: .5rem; background: white; padding: .6rem; }
@media (max-width: 61rem) {
  .exercise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 64rem) {
  .price-help { position: static; }
  .price-help p { inset: calc(100% + .35rem) 0 auto auto; transform: none; width: min(100%, 16rem); }
}
@media (max-width: 47rem) {
  .wrap { width: min(100% - 2rem, 80rem); }
  .hero { grid-template-columns: 1fr; }
  .showcase { max-width: 33rem; }
}
@media (max-width: 34rem) {
  .header { flex-wrap: wrap; padding-block: .75rem .45rem; gap: .25rem .65rem; }
  .sections-nav { gap: .45rem .7rem; font-size: .9rem; }
  .header .socials { flex-basis: 100%; }
  .exercise-grid, .tariffs { grid-template-columns: 1fr; }
  .exercise { padding: 1.05rem; }
  #player-title { padding-inline: 3rem; }
  .player-dismiss { left: auto; right: 0; }
}
@media (max-height: 30rem) {
  .player-panel { width: min(16rem, 100vw - 8rem, calc((100dvh - 6.25rem) * .5625 + 16px)); }
  #player-title { min-height: 0; padding: 0; font-size: 1rem; }
  .player-phone { --phone-radius: 27px; padding: 5px; border-width: 3px; }
  .player-phone video, .iphone-screen { border-radius: 19px; }
  .feed-actions { --avatar-radius: 12px; }
  .feed-avatar { width: 24px; height: 24px; }
  .feed-avatar img { width: 16px; }
  .feed-action { height: auto; gap: 1px; }
  .feed-actions svg { width: 14px; height: 14px; }
  .player-phone::before { top: 11px; height: 10px; }
  .player-phone::after { left: -6px; box-shadow: 0 23px #6a696e; }
  .player-dismiss { left: calc(100% + .65rem); top: 0; right: auto; bottom: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  #player[open]::backdrop { animation: player-backdrop-in .28s ease-out both; }
  #player[open] .player-panel { animation: player-rise-in .34s cubic-bezier(.2, .75, .3, 1) both; }
}
@keyframes player-backdrop-in {
  from { opacity: 0; }
}
@keyframes player-rise-in {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .exercise { transition: transform .22s ease, box-shadow .22s ease; }
  .exercise img, .showcase img { transition: transform .36s ease; }
  .exercise:hover { transform: translateY(-4px); box-shadow: 0 15px 32px #2415422b; }
  .exercise:hover img, .showcase a:hover img { transform: scale(1.18); }
}
.exercise:hover .watch, .exercise:focus-visible .watch { color: #39216e; }
.exercise:hover .watch-label, .exercise:focus-visible .watch-label { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Search-friendly category and exercise pages. The home catalog keeps its existing layout. */
.group-link { color: inherit; text-decoration: none; }
.group-link:hover { color: var(--purple); text-decoration: underline; }
.editorial { padding-block: 1.25rem 4rem; }
.breadcrumbs { gap: .35rem; align-items: baseline; color: var(--muted); font-size: .88rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.breadcrumbs a { color: var(--purple-dark); }
.breadcrumb-separator { color: var(--muted); }
.editorial h1 { max-width: 26ch; font-size: clamp(2rem, 4.8vw, 3.75rem); overflow-wrap: anywhere; hyphens: auto; }
.editorial h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; }
.editorial-lead { margin-top: 1rem; max-width: 70ch; font-size: clamp(1rem, 2vw, 1.2rem); }
.editorial-section { margin-top: 2.5rem; max-width: 74ch; }
.editorial-section h2, .snippets h2 { margin-bottom: .85rem; }
.snippets { margin-top: 2.5rem; }
.editorial-card { box-shadow: 0 5px 18px #2415420d, inset 0 0 0 1px var(--line); }
.editorial-card h3 { font-size: 1rem; line-height: 1.25; }
.editorial-video-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: 2rem; }
.inline-exercise-video { display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 9/16; border-radius: 1.1rem; background: #141416; box-shadow: 0 8px 24px #24154224; }
.editorial-video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.editorial-instructions { max-width: 66ch; }
.editorial-instructions ol { padding-left: 1.5rem; margin: .85rem 0 1.6rem; }
.editorial-instructions li + li { margin-top: .7rem; }
.editorial-instructions h2 + p { margin-top: .65rem; }
.editorial-category { margin-top: 1.1rem; }
.editorial-cta { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; justify-content: space-between; background: #f3edfc; border: 1px solid #e3d8f6; border-radius: 1.1rem; padding: clamp(1.1rem, 4vw, 2rem); margin-top: 2.75rem; }
.editorial-cta p { max-width: 65ch; margin-top: .6rem; }
.editorial-links { display: grid; gap: .5rem; padding-left: 1.25rem; }
@media (max-width: 47rem) {
  .editorial { padding-top: .85rem; }
  .breadcrumbs { margin-bottom: 1.1rem; }
  .editorial h1 { max-width: none; font-size: clamp(1.65rem, 5vw, 2.4rem); }
  .editorial-video-layout { grid-template-columns: 1fr; margin-top: 1.4rem; }
}
