:root {
  font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  color: #111216;
  background: #e9ebf1;
  font-synthesis: none;
  --blue: #146cff;
  --ink: #111216;
  --muted: #777a84;
  --line: #e7e8ec;
  --surface: #f4f4f6;
  --lime: #bdff2f;
  --page-x: 24px;
  --telegram-top-inset: 0px;
}
.subscription-gate { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; padding:24px; background:#111216; }
.subscription-gate[hidden] { display:none; }
.subscription-gate__card { display:grid; justify-items:center; width:min(100%,420px); padding:38px 26px 30px; color:#fff; text-align:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:30px; }
.subscription-gate__lock { display:grid; place-items:center; width:78px; height:78px; margin-bottom:22px; color:#111216; background:var(--lime); border-radius:26px; font-size:3.1rem; }
.subscription-gate__card h1 { margin:10px 0 12px; font-size:clamp(2rem,9vw,2.8rem); line-height:1; }
.subscription-gate__card p { margin:0 0 26px; color:#c4c8d2; line-height:1.55; }
.subscription-gate__confirm { margin-top:15px; color:#d9dce3; background:transparent; border:0; font:inherit; font-size:.78rem; text-decoration:underline; cursor:pointer; }
.demo-notice { display:grid; gap:7px; margin:18px 0 28px; padding:18px; color:#20232a; background:#eef3ff; border:1px solid #dbe5ff; border-radius:20px; }
.demo-notice strong { font-size:.92rem; }
.demo-notice span { color:#606573; font-size:.82rem; line-height:1.45; }
.demo-topbar { display:flex; align-items:center; justify-content:space-between; min-height:56px; padding:calc(var(--telegram-top-inset) + 10px) var(--page-x) 10px; border-bottom:1px solid #ececf0; }
.demo-topbar strong { display:flex; align-items:center; gap:7px; font-size:.94rem; letter-spacing:-.03em; }
.brand-nav-icon { width:21px; height:21px; fill:#111216; }
.demo-topbar > div { display:flex; gap:4px; }
.demo-topbar button { display:grid; place-items:center; width:34px; height:34px; padding:0; color:#373942; background:transparent; border:0; border-radius:50%; font-size:1.45rem; cursor:pointer; }
.demo-feature { position:relative; display:grid; width:100%; aspect-ratio:1 / .76; min-height:0; margin:0 0 20px; padding:18px 20px; overflow:hidden; color:#fff; background:linear-gradient(130deg,#17181c,#2a2c34); border-radius:28px; }
.demo-feature__eyebrow,.demo-feature__footer { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:center; color:#c7cad4; font-size:.72rem; }
.demo-feature h2 { position:relative; z-index:1; align-self:end; max-width:58%; margin:0; font-size:clamp(1.75rem,7vw,2.35rem); line-height:.98; letter-spacing:-.06em; }
.demo-feature p { position:relative; z-index:1; margin:8px 0 0; color:#b7bac3; font-size:.74rem; }
.demo-feature__slides { position:absolute; right:16px; top:58px; display:flex; gap:6px; transform:rotate(-3deg); }
.demo-feature__slides span { display:grid; place-items:center; width:46px; height:94px; padding:7px 4px; color:#f4f4f4; background:linear-gradient(160deg,#a0a1a5,#383a3f); border:4px solid #17181c; border-radius:13px; box-shadow:0 9px 20px rgba(0,0,0,.32); font-size:.52rem; font-weight:600; text-align:center; }
.demo-feature__slides span:nth-child(1) { background:linear-gradient(160deg,#b5b7bc,#4a4d54); }
.demo-feature__slides span:nth-child(2) { background:linear-gradient(160deg,#96989e,#303237); }
.demo-feature__slides span:nth-child(3) { background:linear-gradient(160deg,#d0d1d4,#595b61); }
.demo-feature__footer { align-self:end; }
.demo-feature__footer button { min-height:36px; padding:0 17px; color:#1d1e23; background:#fff; border:0; border-radius:999px; font-weight:600; cursor:pointer; }
.demo-topbar + .home-content .welcome { padding-top:18px; padding-bottom:16px; }
.access-banner { position:relative; display:flex; align-items:center; gap:11px; margin:0 0 25px; padding:14px 16px; overflow:hidden; color:#262931; background:linear-gradient(112deg,#f8fbff 0%,#edf6ff 58%,#effcff 100%); border:1px solid #d8e9ff; border-radius:18px; box-shadow:0 10px 26px rgba(32,147,255,.13); font-size:.86rem; line-height:1.35; }
.access-banner::before { position:absolute; content:""; width:130px; height:80px; right:-42px; top:-28px; background:radial-gradient(circle,#21bff4 0%,rgba(29,145,255,.22) 35%,transparent 72%); filter:blur(5px); opacity:.76; }
.access-banner b { position:relative; z-index:1; flex:0 0 auto; padding:5px 8px; color:#fff; background:linear-gradient(135deg,#147dff,#18c7ed); border-radius:999px; box-shadow:0 7px 15px rgba(20,138,255,.36); font-size:.66rem; letter-spacing:.06em; }
.access-banner span { position:relative; z-index:1; }
.material-card__author { display:flex; align-items:center; gap:8px; margin-bottom:12px; color:#6f737e; font-size:.76rem; }
.material-card__author i { display:grid; place-items:center; width:25px; height:25px; color:#fff; background:#282a30; border-radius:50%; font-style:normal; font-size:1rem; line-height:1; }
.material-card__author i svg { width:15px; height:15px; fill:currentColor; }
@media (max-width: 380px) { .demo-feature { min-height:250px; } .demo-feature__slides span { width:42px; height:86px; } }

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 20% 10%, #f9f9fb 0 2px, transparent 3px) 0 0 / 28px 28px, #e9ebf1; }
button { font: inherit; color: inherit; }
strong, b, h1, h2, h3 { font-weight: 600; }
button, [data-open] { -webkit-tap-highlight-color: transparent; }
.app-shell { position: relative; width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; background: #fff; box-shadow: 0 0 60px rgba(22, 28, 45, .12); overflow-x: hidden; }
.screen { display: none; min-height: 100dvh; padding-bottom: 112px; }
.screen.is-active { display: block; animation: screen-in .28s ease both; }
/* Keep fixed actions fixed to the viewport: a transformed screen would otherwise
   create a containing block for the purchase button on some mobile browsers. */
@keyframes screen-in { from { opacity: 0; } }

.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; height: 94px; padding: max(10px, env(safe-area-inset-top)) var(--page-x) 8px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.topbar__side { min-width: 0; }
.topbar__side--right { justify-self: end; }
.brand { min-width: 0; text-align: center; line-height: 1.05; }
.brand strong { display: block; font-size: .95rem; letter-spacing: .06em; white-space: nowrap; }
.brand span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.text-button, .icon-button, .back-button { border: 0; background: transparent; cursor: pointer; }
.text-button { padding: 8px 0; text-align: left; font-size: .95rem; }
.icon-button { display: grid; place-content: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid #17181b; border-radius: 50%; font-weight: 600; letter-spacing: 1px; }
.icon-button span { display: block; width: 3px; height: 3px; margin: 1.5px; border-radius: 50%; background: currentColor; }
.back-button { display: flex; align-items: center; gap: 3px; padding: 8px 0; font-size: 2rem; line-height: 1; }
.back-button span { font-size: .95rem; }

.home-content { padding: 0 var(--page-x); }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: max(30px, calc(var(--telegram-top-inset) + 18px), env(safe-area-inset-top)) 0 28px; }
.eyebrow { display: block; margin-bottom: 8px; color: #737782; font-size: .72rem; font-weight: 600; letter-spacing: .13em; }
.welcome h1 { max-width: 340px; margin: 0; font-size: .9375rem; line-height: 1.35; letter-spacing: -.015em; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; color: white; background: linear-gradient(145deg, #191a1e, #474b55); border: 3px solid #edf0f4; font-size: .78rem; font-weight: 600; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.quick-start { margin: 2px 0 0; }
.quick-start__heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.quick-start__heading h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.035em; }
.quick-start__heading span { color: #7b7e87; font-size: .78rem; }
.arlo-carousel { outline: none; }
.arlo-carousel:focus-visible { border-radius: 30px; box-shadow: 0 0 0 3px rgba(20,108,255,.24); }
.arlo-carousel__viewport { margin: 0; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
.arlo-carousel__viewport::-webkit-scrollbar { display: none; }
.arlo-carousel__track { display: flex; gap: 12px; }
.featured { position: relative; display: grid; grid-template-rows: 24px 70px 1fr 48px; flex: 0 0 100%; min-height: 304px; padding: 20px; overflow: hidden; color: white; background: #111216; border-radius: 30px; box-shadow: 0 18px 38px rgba(20,108,255,.18); scroll-snap-align: start; scroll-snap-stop: always; }
.featured--practice { background: #111216; }
.featured--consultation { background: linear-gradient(150deg, #146cff 0%, #0d55d7 100%); }
.featured::after { position: absolute; content: ""; width: 250px; height: 250px; right: -100px; top: 50px; background: var(--blue); border-radius: 50%; filter: blur(1px); opacity: .95; }
.featured__head, .featured__footer { position: relative; z-index: 2; }
.featured__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.featured__head .eyebrow { overflow: hidden; font-size: .66rem; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow--light { margin: 0; color: #cbd0da; }
.featured__count { font-size: .72rem; color: #cbd0da; white-space: nowrap; }
.featured h3 { position: relative; z-index: 2; align-self: center; margin: 0; max-width: 330px; font-size: clamp(1.8rem, 7.3vw, 2.2rem); line-height: 1.02; letter-spacing: -.045em; }
.featured__visual { position: relative; z-index: 2; align-self: center; width: 100%; height: 122px; }
.signal { position: absolute; display: grid; place-items: center; height: 50px; padding: 0 18px; border-radius: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; transform: rotate(-5deg); }
.signal--one { left: 0; top: 8px; color: #111; background: var(--lime); }
.signal--two { left: 94px; top: 18px; width: 58px; padding: 0; color: #111; background: #fff; transform: rotate(7deg); }
.signal--three { left: 138px; top: 72px; background: #ff4cb5; transform: rotate(-3deg); }
.signal--four { right: 12px; top: 36px; width: 62px; padding: 0; background: rgba(255,255,255,.18); font-size: 1.5rem; transform: rotate(8deg); }
.featured__footer { display: flex; align-items: center; justify-content: space-between; align-self: end; gap: 12px; }
.featured__footer > span { color: #d7dae1; font-size: .88rem; }
.featured__count i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(189,255,47,.15); }
.consultation-visual { position: relative; z-index: 2; align-self: center; width: 100%; height: 130px; }
.consultation-visual__main { position: absolute; left: 0; top: 2px; font-size: 5.2rem; font-weight: 600; line-height: 1; letter-spacing: -.09em; }
.consultation-visual__chip { position: absolute; left: min(178px, 44vw); top: 46px; padding: 11px 13px; color: #111216; background: var(--lime); border-radius: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; transform: rotate(-6deg); }
.consultation-visual__orbit { position: absolute; right: 2px; top: 4px; display: grid; place-items: center; width: 50px; height: 50px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 1.7rem; }
/* ArloUI button anatomy adapted for this web build. */
.arlo-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; overflow: hidden; border: 0; border-radius: 999px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform .12s cubic-bezier(.2,.8,.2,1), opacity .16s ease, box-shadow .16s ease; }
.arlo-button::after { position: absolute; content: ""; inset: 0; background: #050609; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.arlo-button > span { position: relative; z-index: 1; }
.arlo-button:hover::after { opacity: .04; }
.arlo-button:active { transform: scale(.965); }
.arlo-button:active::after { opacity: .1; }
.arlo-button:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(20,108,255,.55); }
.arlo-button--inverse { color: #111216; background: #fff; }
.arlo-button--primary { min-height: 54px; color: #fff; background: var(--blue); }
.arlo-button--soft { min-height: 54px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.arlo-button--full { width: 100%; }

.category-tabs { display:flex; gap:7px; margin:22px calc(var(--page-x) * -1) 16px; padding:0 var(--page-x) 4px; overflow-x:auto; scroll-margin-top:104px; scrollbar-width:none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex:0 0 auto; min-height:36px; padding:0 13px; color:#24262d; background:#fff; border:1px solid #dcdee4; border-radius:99px; font-size:.79rem; cursor:pointer; }
.category-tab.is-active { color:#fff; background:#111216; border-color:#111216; font-weight:600; }
.practice-callout { display: grid; grid-template-columns: minmax(0, 1fr) 55px; gap: 16px; align-items: center; margin-bottom: 28px; padding: 18px; color: white; background: #111216; border-radius: 22px; }
.practice-callout p { display: grid; gap: 8px; margin: 0; }
.practice-callout strong { font-size: .88rem; line-height: 1.42; }
.practice-callout span { color: #c5c8d0; font-size: .76rem; }
.practice-callout button { display: grid; place-items: center; width: 55px; height: 55px; padding: 0; color: #111216; background: var(--lime); border: 0; border-radius: 17px; cursor: pointer; }
.practice-callout button svg { width: 25px; height: 25px; overflow: visible; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; animation: callout-arrow-up 1.45s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes callout-arrow-up { 0%,100% { transform: translateY(3px); opacity: .72; } 48% { transform: translateY(-4px); opacity: 1; } }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.section-title span { display: grid; place-items: center; width: 34px; height: 28px; color: #666a74; background: #f2f3f5; border-radius: 10px; font-size: .75rem; }
.feed-list { display: grid; }
.material-card { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.material-card > div:first-child { min-width: 0; }
.material-card[hidden] { display: none; }
.material-card__meta { margin-bottom: 8px; color: #777a84; font-size: .75rem; }
.material-card h3 { margin: 0 0 16px; font-size: 1.15rem; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
.material-card__footer { display: flex; align-items: center; gap: 8px; color: #747780; font-size: .76rem; }
.material-card__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.material-card__reactions { display:flex; gap:5px; margin-top:13px; }
.reaction-button { display: inline-flex; align-items: center; gap: 3px; width: max-content; height: 30px; padding: 0 8px; white-space: nowrap; background: #f2f3f6; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.reaction-button__count { color: #666a74; font-size: .68rem; font-weight: 600; }
.reaction-button:hover { background: #e9ebf0; transform: translateY(-1px); }
.reaction-button.is-selected { background: #eaf2ff; border-color: #146cff; box-shadow: 0 0 0 2px rgba(20,108,255,.1); transform: scale(1.04); }
.reaction-button.is-selected .reaction-button__count { color: #0040ff; }
.material-card__thumb { position:relative; display:grid; place-items:center; width:100%; height:142px; margin-top:16px; overflow:hidden; color:rgba(255,255,255,.85); background:var(--card-bg); border-radius:21px; filter:grayscale(1); }
.material-card__thumb::before { position:absolute; content:attr(data-symbol); left:18px; bottom:13px; color:rgba(255,255,255,.3); font-size:3rem; font-weight:600; letter-spacing:-.08em; }
.material-card__thumb::after { position:absolute; content:""; width:160px; height:160px; right:-42px; top:-80px; background:rgba(255,255,255,.12); border-radius:50%; }
.material-card__thumb span { position:relative; z-index:1; padding:8px 12px; background:rgba(0,0,0,.18); border-radius:999px; font-size:.78rem; }
.file-resource { display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; width:100%; margin-top:22px; padding:14px; text-align:left; background:#f1f2f4; border:0; border-radius:18px; cursor:pointer; }
.file-resource__icon { display:grid; place-items:center; width:48px; height:48px; color:#fff; background:#71757d; border-radius:13px; font-size:.72rem; font-weight:600; }
.file-resource span:last-child { display:grid; gap:4px; }.file-resource small { color:#747780; font-size:.75rem; }
.article__actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:22px; }
.article__actions button { display:grid; place-items:center; gap:5px; min-height:62px; padding:8px 5px; color:#414650; background:#f2f3f5; border:1px solid #e5e7ec; border-radius:16px; font-size:.68rem; cursor:pointer; }
.article__actions button span { color:#ff6a00; font-size:1.16rem; line-height:1; }
.resource-dialog { position:fixed; z-index:80; inset:0; display:grid; place-items:end center; }.resource-dialog[hidden] { display:none; }
.resource-dialog__backdrop { position:absolute; inset:0; width:100%; border:0; background:rgba(17,18,22,.48); }.resource-dialog__panel { position:relative; width:min(100%,520px); padding:28px var(--page-x) calc(30px + env(safe-area-inset-bottom)); background:#fff; border-radius:28px 28px 0 0; box-shadow:0 -14px 40px rgba(17,18,22,.16); }.resource-dialog__panel h2 { margin:0 0 12px; font-size:1.7rem; letter-spacing:-.04em; }.resource-dialog__panel p { margin:0 0 22px; color:#666a74; line-height:1.5; }.resource-dialog__close { position:absolute; top:16px; right:var(--page-x); display:grid; place-items:center; width:38px; height:38px; padding:0; color:#4e535e; background:#f0f1f4; border:0; border-radius:50%; font-size:1.55rem; cursor:pointer; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); width: min(calc(100% - 34px), 486px); min-height: 72px; padding: 7px; background: rgba(245,245,247,.92); border: 1px solid rgba(255,255,255,.85); border-radius: 25px; box-shadow: 0 14px 40px rgba(20,24,35,.18); backdrop-filter: blur(20px); transform: translateX(-50%); }
.bottom-nav.is-hidden { display: none; }
.bottom-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 7px 4px; color: #848790; background: transparent; border: 0; border-radius: 19px; font-size: .75rem; cursor: pointer; }
.bottom-nav__item.is-active { color: #111216; background: white; box-shadow: 0 4px 14px rgba(25,28,37,.07); }
.nav-icon { position: relative; display: block; width: 24px; height: 24px; }
.nav-icon--iconimate svg { display: block; width: 24px; height: 24px; overflow: visible; stroke: currentColor; stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav__item:hover .house-door, .bottom-nav__item:focus-visible .house-door, .bottom-nav__item.is-playing .house-door { transform-origin: 104px 216px; animation: house-welcome 1.2s cubic-bezier(.16,1,.3,1); }
.bottom-nav__item:hover .nav-icon--bookmark svg, .bottom-nav__item:focus-visible .nav-icon--bookmark svg, .bottom-nav__item.is-playing .nav-icon--bookmark svg { transform-origin: 50% 18%; animation: bookmark-gust 1.25s ease-in-out; }
.bottom-nav__item:hover .user-head, .bottom-nav__item:focus-visible .user-head, .bottom-nav__item.is-playing .user-head { animation: user-glance 1.15s ease-in-out; }
@keyframes house-welcome { 0%,100% { transform: scaleX(1); } 35%,60% { transform: scaleX(.16); } }
@keyframes bookmark-gust { 0%,100% { transform: rotate(0); } 22% { transform: rotate(-8deg); } 45% { transform: rotate(5deg); } 65% { transform: rotate(-2deg); } }
@keyframes user-glance { 0%,100% { transform: translate(0,0); } 23%,37% { transform: translate(-18px,-4px); } 58%,72% { transform: translate(18px,-4px); } }

.saved-page { padding: max(30px, calc(var(--telegram-top-inset) + 18px), env(safe-area-inset-top)) var(--page-x) 120px; }
.saved-page .empty-state { min-height: 520px; }
.saved-page__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.saved-page__heading .eyebrow { margin-bottom: 8px; }
.saved-page__heading h1 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.15rem); line-height: 1.08; letter-spacing: -.04em; }
.saved-page__count { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; color: #666a74; background: var(--surface); border-radius: 12px; font-size: .8rem; }
.saved-list { display: grid; gap: 12px; }
.saved-card { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid #eceef2; border-radius: 22px; }
.saved-card__open { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; padding: 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.saved-card__thumb { position: relative; display: block; width: 72px; height: 84px; overflow: hidden; background: var(--card-bg); border-radius: 16px; }
.saved-card__thumb::before { position: absolute; content: attr(data-symbol); left: 10px; bottom: 8px; color: white; font-size: 1.7rem; font-weight: 600; letter-spacing: -.06em; }
.saved-card__body { display: grid; gap: 6px; min-width: 0; }
.saved-card__body small, .saved-card__body > span { color: var(--muted); font-size: .69rem; line-height: 1.35; }
.saved-card__body strong { display: -webkit-box; overflow: hidden; font-size: .91rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.saved-card__remove, .save-button { display: grid; place-items: center; padding: 0; color: #686c76; background: white; border: 1px solid #dfe1e6; border-radius: 50%; cursor: pointer; transition: color .18s ease, background .18s ease, transform .12s ease; }
.saved-card__remove { width: 40px; height: 40px; }
.saved-card__remove svg, .save-button svg, .empty-state__mark svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; }
.saved-card__remove.is-saved, .save-button.is-saved { color: white; background: var(--blue); border-color: var(--blue); }
.saved-card__remove.is-saved svg path, .save-button.is-saved svg path { fill: currentColor; }
.saved-card__remove:active, .save-button:active { transform: scale(.92); }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 10px; text-align: center; }
.empty-state__mark { display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: 24px; color: white; background: var(--blue); border-radius: 28px; font-size: 2.6rem; box-shadow: 0 18px 30px rgba(20,108,255,.25); transform: rotate(-6deg); }
.empty-state__mark svg { width: 34px; height: 34px; }
.empty-state h1 { margin: 0 0 12px; font-size: 1.8rem; letter-spacing: -.04em; }
.empty-state p { max-width: 360px; margin: 0 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.profile-page { padding: max(30px, calc(var(--telegram-top-inset) + 18px), env(safe-area-inset-top)) var(--page-x) 120px; }
.profile-hero { padding: 34px 22px; text-align: center; color: white; background: #111216; border-radius: 30px; }
.avatar--large { width: 80px; height: 80px; margin: 0 auto 16px; font-size: 1.1rem; background: #ff5f14; border-color: rgba(255,255,255,.25); }
.profile-hero h1 { margin: 0 0 5px; font-size: 1.7rem; }
.profile-hero p { margin: 0 0 16px; color: #b7bac3; }
.profile-hero > span { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; color: #d9dde5; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: .72rem; }
.settings-card { margin-top: 18px; padding: 4px 18px; background: var(--surface); border-radius: 24px; }
.settings-card button { display: flex; justify-content: space-between; width: 100%; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid #dddfe4; cursor: pointer; }
.settings-card button:last-child { border-bottom: 0; }
.settings-card b { color: #777a84; }
.profile-actions { display: grid; gap: 10px; margin-top: 16px; }
.screen--saved .arlo-button--primary, .screen--profile .arlo-button--primary { background:#ff6a00; box-shadow:0 12px 24px rgba(255,106,0,.22); }
.screen--saved .empty-state__mark { background:#ff6a00; box-shadow:0 18px 30px rgba(255,106,0,.25); }
.screen--saved .saved-card__remove.is-saved { background:#ff6a00; border-color:#ff6a00; }

.screen--detail { padding-bottom: 112px; }
.article { padding: max(48px, calc(env(safe-area-inset-top) + 28px)) var(--page-x) 44px; }
.article__top { display: grid; grid-template-columns: auto minmax(0, 1fr) 48px; gap: 12px; align-items: center; min-height: 40px; }
.article__top--practicum { grid-template-columns: auto; align-items: start; }
.article__top--practicum .article-back { color: #0033ff; }
.article__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 48px; color: #777a84; font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.article__eyebrow > span:last-child::before { content: "•"; margin-right: 12px; color: #b7bac3; }
.article-back { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 74px; height: 36px; padding: 0 11px 0 8px; color: #0033ff; background: #f5f7fb; border: 1px solid #d5dce7; border-radius: 12px; box-shadow: 0 2px 8px rgba(17,18,22,.06); font-size: .75rem; font-weight: 700; cursor: pointer; }
.article-back svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.article__studied { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; color: #087a48; background: #dcf9ea; border-radius: 99px; font-size: .65rem; letter-spacing: .02em; text-transform: none; }
.save-button { width: 48px; height: 48px; color: #3f4652; background: #f7f8fa; border: 1.5px solid #c4cbd6; box-shadow: 0 2px 8px rgba(17,18,22,.06); }
.article h1 { max-width: 440px; margin: 16px 0 24px; font-size: clamp(2.05rem, 9.5vw, 3.1rem); line-height: 1.02; letter-spacing: -.05em; }
.article__cover { display: grid; place-items: end start; height: 240px; margin-bottom: 28px; padding: 22px; color: white; background: var(--article-bg, #146cff); border-radius: 28px; }
.article__cover strong { font-size: 4.6rem; font-weight: 600; letter-spacing: -.09em; }
.article__lead { font-size: 1.16rem; line-height: 1.5; }
.article h2 { margin: 32px 0 12px; font-size: 1.4rem; letter-spacing: -.03em; }
.article p { color: #50535b; font-size: 1rem; line-height: 1.65; }
.article__note { margin: 28px 0; padding: 22px; background: #f1f3f7; border-radius: 22px; }
.article__note b { display: block; margin-bottom: 8px; color: #111216; }
.article__section { margin: 0; }
.article__post { display: grid; gap: 20px; margin-top: 4px; }
.article__post p { margin: 0; white-space: normal; }
.article__post-block--title { color: #111216 !important; font-size: 1.16rem !important; font-weight: 600; line-height: 1.5 !important; }
.article__post-block--list { padding-left: 2px; }
.article__post-block--note { padding: 14px 16px; color: #3f444d !important; background: #f2f3f6; border-radius: 14px; }
.article__post--rich { gap: 18px; }
.article__post--rich h2 { margin: 16px 0 0; }
.article__post--rich h3 { margin: 8px 0 -4px; color: #17191f; font-size: 1.08rem; line-height: 1.35; }
.article__post--rich ul, .article__post--rich ol { display: grid; gap: 9px; margin: -2px 0 2px; padding-left: 22px; color: #50535b; font-size: 1rem; line-height: 1.58; }
.article__post--rich li::marker { color: #146cff; font-weight: 700; }
.article__post--rich blockquote { margin: 0; padding: 16px 18px; color: #292d36; background: #f1f5ff; border-left: 3px solid #146cff; border-radius: 0 14px 14px 0; font-size: 1rem; line-height: 1.55; }
.article__source[aria-busy="true"] { opacity: .55; transition: opacity .18s ease; }
.article__source figure { margin: 4px 0; overflow: hidden; border-radius: 18px; }
.article__source figure img { display: block; width: 100%; height: auto; }
.article__source hr { width: 100%; height: 1px; margin: 4px 0; background: #dde1e8; border: 0; }
.article__source a { color: #0033ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-source-error { color: #8a5b00 !important; }
.article-demo-notice { margin:0 0 22px; padding:15px 16px; color:#525762; background:#f0f1f4; border-radius:16px; font-size:.84rem; line-height:1.45; }
.article-practice-callout { display: grid; grid-template-columns: minmax(0,1fr) 52px; gap: 14px; width: 100%; margin-top: 32px; padding: 18px; color: #fff; text-align: left; background: #111216; border: 0; border-radius: 22px; cursor: pointer; }
.article-practice-callout span { display: grid; gap: 7px; }
.article-practice-callout strong { font-size: .9rem; line-height: 1.4; }
.article-practice-callout small { color: #c5c8d0; font-size: .77rem; line-height: 1.4; }
.article-practice-callout b { display: grid; place-items: center; width: 52px; height: 52px; color: #111216; background: var(--lime); border-radius: 16px; font-size: 1.55rem; }
.video-lesson { display: grid; gap: 16px; }
.video-lesson > p { margin: 0; }
.video-lesson__materials { display: grid; gap: 7px; padding: 19px; color: #17191f; text-align: left; background: #f1f4f9; border: 1px solid #dfe5ef; border-radius: 18px; cursor: pointer; }
.video-lesson__materials span { font-size: .9rem; font-weight: 600; }
.video-lesson__materials b { color: #0033ff; font-size: .78rem; font-weight: 600; }
.article__footer-links { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; }
.article__footer-links--single { justify-content: stretch; }
.article__footer-links .arlo-button { flex: 1; min-height: 58px; }
.telegram-link { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; color: white; background: #229ed9; border: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(34,158,217,.25); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.telegram-link:hover { box-shadow: 0 14px 28px rgba(34,158,217,.34); transform: translateY(-2px); }
.telegram-link:active { transform: scale(.96); }
.telegram-link svg { width: 29px; height: 29px; transform: translate(-1px, 1px); }
.article__purchase { position: fixed; z-index: 60; bottom: max(18px, calc(18px + env(safe-area-inset-bottom))); left: 50%; width: min(calc(100% - 32px), 420px); margin: 0; box-shadow: 0 12px 28px rgba(20,108,255,.28); transform: translateX(-50%); }
.product-features { display: grid; gap: 0; }
.product-feature { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.product-feature + .product-feature { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e4e7ed; }
.product-feature__icon { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: #146cff; border-radius: 15px; }
.product-feature__icon--violet { background: #7a3cff; }
.product-feature__icon--pink { background: #f33fa0; }
.product-feature__icon--green { background: #00ad84; }
.product-feature__icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.product-feature h2 { margin: 1px 0 8px; font-size: 1.12rem; }
.product-feature p, .product-feature li { color: #5c6069; font-size: .91rem; line-height: 1.55; }
.product-feature p { margin: 0; }.product-feature p + p { margin-top: 10px; }
.product-feature ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.product-feature li::marker { color: #146cff; }
.product-feature--audience { align-items: start; }
.product-audiences { display: grid; gap: 18px; }
.product-audiences section { padding-top: 16px; border-top: 1px solid #dfe1e6; }
.product-audiences section:first-child { padding-top: 2px; border-top: 0; }
.product-audiences h3 { margin: 0 0 9px; color: #15171d; font-size: .96rem; line-height: 1.25; }
.product-audiences ul { gap: 7px; padding-left: 17px; }
.product-audiences li { padding-left: 2px; }
.product-program { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: lesson; }
.product-program li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 8px; color: #23252c; }
.product-program li::before { counter-increment: lesson; content: counter(lesson, decimal-leading-zero); display: grid; place-items: center; width: 27px; height: 27px; color: #146cff; background: #e8f0ff; border-radius: 9px; font-size: .68rem; font-weight: 700; line-height: 1; }
.product-program li::marker { content: none; }
.product-author { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.product-author img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.product-author span { display: grid; gap: 2px; }
.product-author b { font-size: .88rem; }
.product-author small { color: #777a84; font-size: .72rem; }
.product-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.product-stats span { display: grid; gap: 3px; padding: 9px 7px; background: white; border-radius: 12px; }
.product-stats b { font-size: .83rem; }
.product-stats small { color: #777a84; font-size: .63rem; line-height: 1.25; }
.trust-dashboard { display: grid; gap: 13px; padding: 0; margin-top: 10px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.trust-dashboard__intro { display: block; }
.trust-dashboard__intro b { color: #15171d; font-size: .94rem; }
.trust-dashboard__intro p { margin-top: 5px; font-size: .82rem; line-height: 1.42; }
.trust-bars { display: grid; gap: 0; }
.trust-bar { display: grid; grid-template-columns: 28px minmax(0, 1fr) 38px; gap: 9px; align-items: center; min-height: 52px; padding: 10px 0; background: transparent; border-radius: 0; }
.trust-bar + .trust-bar { border-top: 1px solid #e4e7ed; }
.trust-bar > i { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; border-radius: 9px; font-size: .76rem; font-style: normal; }
.trust-bar span { display: grid; gap: 1px; min-width: 0; }.trust-bar b { color: #15171d; font-size: .8rem; }.trust-bar small { color: #777b85; font-size: .65rem; white-space: nowrap; }
.trust-bar em { height: 6px; overflow: hidden; background: #e6e8ec; border-radius: 99px; }.trust-bar em::before { display: block; width: var(--bar-fill); height: 100%; content: ''; background: var(--bar-color); border-radius: inherit; transform-origin: left; animation: progress-fill .9s cubic-bezier(.2,.8,.2,1) both; }
.trust-bar--telegram { --bar-color: #2b8cf0; }.trust-bar--telegram > i { background: #2b8cf0; }.trust-bar--youtube { --bar-color: #ef3535; }.trust-bar--youtube > i { background: #ef3535; }.trust-bar--students { --bar-color: #7a3cff; }.trust-bar--students > i { background: #7a3cff; }
@keyframes progress-fill { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .trust-bar em::before { animation: none; } }
.has-modal { overflow: hidden; }
.product-checkout[hidden] { display: none; }
.product-checkout { position: fixed; z-index: 120; inset: 0; display: grid; align-items: end; }
.product-checkout__backdrop { position: absolute; inset: 0; background: rgba(12,14,20,.52); border: 0; }
.product-checkout__panel { position: relative; width: min(100%, 520px); max-height: min(86dvh, 760px); margin: 0 auto; padding: 14px var(--page-x) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: white; border-radius: 28px 28px 0 0; box-shadow: 0 -12px 42px rgba(0,0,0,.2); }
.product-checkout__handle { width: 42px; height: 5px; margin: 0 auto 18px; background: #dfe1e6; border-radius: 999px; }
.product-checkout__close { position: absolute; top: 17px; right: var(--page-x); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #555a64; background: #f1f2f5; border: 0; border-radius: 50%; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.product-checkout h2 { max-width: 290px; margin: 0 0 18px; font-size: 1.7rem; letter-spacing: -.045em; }
.product-checkout h3 { margin: 26px 0 12px; font-size: 1.1rem; }
.checkout-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-list span { padding: 12px 14px; color: #202229; background: #fff; border: 1px solid #e4e7ed; border-radius: 14px; font-size: .88rem; font-weight: 600; }
.checkout-list span::before { content: "✓"; margin-right: 9px; color: #146cff; }
.checkout-list span:last-child { grid-column: 1 / -1; }
.arlo-checkbox { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: #646973; font-size: .73rem; line-height: 1.45; cursor: pointer; }
.checkout-terms { margin-top: 18px; }
.arlo-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.arlo-checkbox__box { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; background: white; border: 1.5px solid #bfc4ce; border-radius: 6px; transition: .18s ease; }
.arlo-checkbox__box::after { width: 9px; height: 5px; content: ''; border-bottom: 2px solid white; border-left: 2px solid white; opacity: 0; transform: translateY(-1px) rotate(-45deg); }
.arlo-checkbox input:checked + .arlo-checkbox__box { background: #146cff; border-color: #146cff; }.arlo-checkbox input:checked + .arlo-checkbox__box::after { opacity: 1; }
.arlo-checkbox input:focus-visible + .arlo-checkbox__box { outline: 3px solid rgba(20,108,255,.24); outline-offset: 2px; }
.arlo-checkbox a { color: #146cff; text-decoration: underline; text-underline-offset: 2px; }
.checkout-faq { display: grid; gap: 8px; }
.checkout-faq details { padding: 14px; background: #fff; border: 1px solid #e4e7ed; border-radius: 14px; }
.checkout-faq summary { padding-right: 20px; color: #252730; font-size: .86rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.checkout-faq p { margin: 10px 0 0; color: #656973; font-size: .83rem; line-height: 1.5; }
.product-checkout__pay { margin-top: 16px; }.product-checkout__pay:disabled { color: #8c929d; background: #e7e9ed; cursor: not-allowed; box-shadow: none; }
.article__footer-links .arlo-button.is-complete { color: #087a48; background: #dcf9ea; }
.article__footer-links .arlo-button:disabled { opacity: 1; cursor: default; }
.article-action { display: none; }
.admin-panel { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11,14,20,.48); backdrop-filter: blur(8px); }
.admin-panel__card { position: relative; width: min(100%, 410px); padding: 30px 24px 26px; background: #fff; border-radius: 28px; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.admin-panel h1 { margin: 0 0 10px; font-size: 1.8rem; letter-spacing: -.045em; }.admin-panel__note { margin: 0 0 22px; color: #686d77; font-size: .86rem; line-height: 1.45; }
.admin-panel__close { position: absolute; top: 15px; right: 16px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f0f2f6; color: #4c515c; font-size: 1.5rem; cursor: pointer; }
.admin-login { display:grid; gap:12px; }.admin-login label { display:grid; gap:7px; color:#4f5560; font-size:.8rem; font-weight:600; }.admin-login input { width:100%; height:48px; padding:0 13px; border:1px solid #dce0e8; border-radius:13px; font:inherit; }.admin-login p { min-height:18px; margin:0; color:#d52b54; font-size:.78rem; }
.admin-stats { display:grid; gap:10px; }.admin-stats div { display:grid; gap:3px; padding:16px; border:1px solid #e4e7ed; border-radius:16px; }.admin-stats b { font-size:1.55rem; letter-spacing:-.05em; }.admin-stats span { color:#70757f; font-size:.8rem; }
.popover { position: fixed; z-index: 50; top: 76px; left: calc(50% + min(175px, 38vw)); width: 150px; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(22,28,45,.2); transform: translateX(-100%); }
.popover button { width: 100%; padding: 11px 10px; text-align: left; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.popover button:hover { background: #f1f2f5; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 104px; max-width: calc(100% - 44px); padding: 12px 17px; color: white; background: rgba(17,18,22,.94); border-radius: 14px; font-size: .82rem; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  body { padding: 26px 0; }
  .app-shell { min-height: calc(100dvh - 52px); border-radius: 36px; }
  .screen { min-height: calc(100dvh - 52px); }
  .bottom-nav { bottom: 38px; }
}

@media (max-width: 380px) {
  :root { --page-x: 18px; }
  .topbar { grid-template-columns: 78px 1fr 78px; }
  .featured { min-height: 300px; padding: 18px; }
  .featured h3 { font-size: 1.75rem; }
  .featured__footer > span { max-width: 104px; }
  .consultation-visual__chip { left: 148px; }
  .material-card__thumb { height: 126px; }
  .material-card__reactions { gap: 4px; }
  .reaction-button { height: 29px; padding: 0 7px; font-size: .8rem; }
  .reaction-button__count { font-size: .66rem; }
  .bottom-nav__item span:last-child { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
