/* =====================================================================
   Pathox — v7 designs, modelled on three reference sites
   (tokens taken from public Refero / design.md breakdowns):
     gallery  — Kajabi:     achromatic white UI, ink #0A0A0A buttons, charcoal #1F1F1E bands, 2px corners; micrographs carry the colour
     exam     — USMLE-Rx structure: white + soft blue-grey sections, deep navy #12204A, coral #E8553A actions, device mockups
     text     — Pathoma structure: white + light grey bands, charcoal text, deep red #B3202A accent, 3D textbook
   Font notes: Kajabi Haffer → Inter; exam → Montserrat headings + Inter;
   text → Open Sans (Divi default, as on pathoma.com). Text faces have Cyrillic for the RU pages.
   ===================================================================== */

/* ---------- gallery (Kajabi) — achromatic UI, the micrographs carry all the colour ---------- */
:root[data-design="gallery"][data-theme="light"] {
  --night: #0a0a0a;
  --ink: #0a0a0a; --text: #0a0a0a; --body: #3d3c3a; --muted: #6b6963;
  --blue: #0a0a0a; --blue-h: #333333; --blue-soft: #eeedeb; --blue-line: #d4d3ce;
  --orange: #0a0a0a; --orange-h: #333333; --orange-soft: #eeedeb; --orange-ink: #0a0a0a;
  --green: #2f7a4f; --green-soft: #eaf3ed; --red: #b3261e; --red-soft: #f9ecea; --gold: #7a5c12; --gold-soft: #f5efdf;
  --paper: #ffffff; --bg: #ffffff; --bg-2: #f4f3f1; --line: #e0dedc; --line-2: #d4d3ce; --field: #ffffff;
  --btn-bg: #0a0a0a; --btn-ink: #ffffff; --btn-hover: #2b2b2a;
  --btn2-bg: #ffffff; --btn2-ink: #0a0a0a; --dot: #0a0a0a;
  --side-bg: #ffffff; --side-ink: #0a0a0a; --side-muted: #6b6963; --side-line: #e9e8e7; --side-active: #e9e8e7; --side-active-ink: #0a0a0a; --side-mark: #0a0a0a; --side-mark-ink: #ffffff;
  --block-bg: #1f1f1e; --block-2: #2a2a29; --block-ink: #ffffff; --block-muted: #bcb9ae; --block-line: rgba(255, 255, 255, .12); --block-accent: #ffffff;
  --font-head: "Inter Display", "Inter", system-ui, sans-serif; --head-weight: 500; --head-track: -.02em;
  --radius: 2px; --r-btn: 2px; --r-chip: 9999px;
  --shadow: none;
}
:root[data-design="gallery"][data-theme="dark"] {
  --night: #000000;
  --ink: #f4f3f1; --text: #f4f3f1; --body: #d4d3ce; --muted: #a19e96;
  --blue: #f4f3f1; --blue-h: #ffffff; --blue-soft: #2a2a29; --blue-line: #3d3c3a;
  --orange: #f4f3f1; --orange-h: #ffffff; --orange-soft: #2a2a29; --orange-ink: #f4f3f1;
  --green: #7fcf9f; --green-soft: #1b2e22; --red: #f28b82; --red-soft: #3a1d1b; --gold: #e8cf8a; --gold-soft: #2f2a1b;
  --paper: #1a1a19; --bg: #121211; --bg-2: #1f1f1e; --line: #2e2e2c; --line-2: #3d3c3a; --field: #121211;
  --btn-bg: #f4f3f1; --btn-ink: #0a0a0a; --btn-hover: #ffffff;
  --btn2-bg: #2a2a29; --btn2-ink: #f4f3f1; --dot: #f4f3f1;
  --side-bg: #121211; --side-ink: #f4f3f1; --side-muted: #a19e96; --side-line: #262625; --side-active: #2a2a29; --side-active-ink: #ffffff; --side-mark: #f4f3f1; --side-mark-ink: #0a0a0a;
  --block-bg: #1f1f1e; --block-2: #2a2a29; --block-ink: #ffffff; --block-muted: #bcb9ae; --block-line: rgba(255, 255, 255, .12); --block-accent: #ffffff;
  --font-head: "Inter Display", "Inter", system-ui, sans-serif; --head-weight: 500; --head-track: -.02em;
  --radius: 2px; --r-btn: 2px; --r-chip: 9999px; --shadow: none;
}

/* ---------- exam (USMLE-Rx structure) — white + blue-grey, deep navy, coral action ---------- */
:root[data-design="exam"][data-theme="light"] {
  --night: #12204a;
  --ink: #12204a; --text: #12204a; --body: #3a4566; --muted: #67708a;
  --blue: #2563d9; --blue-h: #1d4fb0; --blue-soft: #eaf1fd; --blue-line: #c6d7f7;
  --orange: #e8553a; --orange-h: #cf4429; --orange-soft: #fdece8; --orange-ink: #b8391f;
  --green: #1f8a5b; --green-soft: #e4f4ec; --red: #c7362f; --red-soft: #fcebea; --gold: #9a6b00; --gold-soft: #fdf3d8;
  --paper: #ffffff; --bg: #ffffff; --bg-2: #f3f6fb; --line: #e2e7f0; --line-2: #cfd7e5; --field: #ffffff;
  --btn-bg: #e8553a; --btn-ink: #ffffff; --btn-hover: #cf4429;
  --btn2-bg: #12204a; --btn2-ink: #ffffff; --dot: #e8553a;
  --side-bg: #12204a; --side-ink: #ffffff; --side-muted: #a9b3cf; --side-line: #1e2d5c; --side-active: #22336a; --side-active-ink: #ffffff; --side-mark: #e8553a; --side-mark-ink: #ffffff;
  --block-bg: #12204a; --block-2: #1b2b5e; --block-ink: #ffffff; --block-muted: #b9c3de; --block-line: rgba(255, 255, 255, .12); --block-accent: #ff8a6b;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif; --head-weight: 700; --head-track: -.015em;
  --radius: 14px; --r-btn: 999px; --r-chip: 999px;
  --shadow: 0 1px 2px rgba(18, 32, 74, .05), 0 10px 30px rgba(18, 32, 74, .08);
}
:root[data-design="exam"][data-theme="dark"] {
  --night: #0a1330;
  --ink: #eef2fb; --text: #eef2fb; --body: #c7cfe3; --muted: #93a0bf;
  --blue: #7aa6ff; --blue-h: #9cbcff; --blue-soft: #1a2a55; --blue-line: #2b3f75;
  --orange: #ff7a5c; --orange-h: #ff9478; --orange-soft: #3d2124; --orange-ink: #ffab96;
  --green: #5fd19c; --green-soft: #133328; --red: #ff8c85; --red-soft: #3b1e22; --gold: #f3cc6a; --gold-soft: #33290f;
  --paper: #121c3d; --bg: #0b1430; --bg-2: #15214a; --line: #22305c; --line-2: #2f3f70; --field: #0b1430;
  --btn-bg: #e8553a; --btn-ink: #ffffff; --btn-hover: #ff6a4d;
  --btn2-bg: #eef2fb; --btn2-ink: #12204a; --dot: #ff7a5c;
  --side-bg: #0a1330; --side-ink: #eef2fb; --side-muted: #93a0bf; --side-line: #17234a; --side-active: #1a2a55; --side-active-ink: #fff; --side-mark: #e8553a; --side-mark-ink: #fff;
  --block-bg: #12204a; --block-2: #1b2b5e; --block-ink: #fff; --block-muted: #b9c3de; --block-line: rgba(255, 255, 255, .12); --block-accent: #ff8a6b;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif; --head-weight: 700; --head-track: -.015em;
  --radius: 14px; --r-btn: 999px; --r-chip: 999px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- text (Pathoma structure) — classic white, charcoal, deep red ---------- */
:root[data-design="text"][data-theme="light"] {
  --night: #1f1f1f;
  --ink: #2b2b2b; --text: #2b2b2b; --body: #555555; --muted: #7a7a7a;
  --blue: #b3202a; --blue-h: #8f1820; --blue-soft: #fbecec; --blue-line: #efc4c6;
  --orange: #b3202a; --orange-h: #8f1820; --orange-soft: #fbecec; --orange-ink: #8f1820;
  --green: #2e7d4f; --green-soft: #e6f3ea; --red: #b3202a; --red-soft: #fbecec; --gold: #8a6512; --gold-soft: #fbf1d6;
  --paper: #ffffff; --bg: #ffffff; --bg-2: #f4f4f4; --line: #e3e3e3; --line-2: #d0d0d0; --field: #ffffff;
  --btn-bg: #b3202a; --btn-ink: #ffffff; --btn-hover: #8f1820;
  --btn2-bg: #2b2b2b; --btn2-ink: #ffffff; --dot: #b3202a;
  --side-bg: #222222; --side-ink: #ffffff; --side-muted: #a8a8a8; --side-line: #333333; --side-active: #3a3a3a; --side-active-ink: #ffffff; --side-mark: #b3202a; --side-mark-ink: #ffffff;
  --block-bg: #2b2b2b; --block-2: #383838; --block-ink: #ffffff; --block-muted: #c9c9c9; --block-line: rgba(255, 255, 255, .12); --block-accent: #e2565e;
  --font-head: "Open Sans", "Inter", system-ui, sans-serif; --head-weight: 700; --head-track: -.01em;
  --radius: 4px; --r-btn: 4px; --r-chip: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
:root[data-design="text"][data-theme="dark"] {
  --night: #111111;
  --ink: #f2f2f2; --text: #f2f2f2; --body: #cfcfcf; --muted: #9a9a9a;
  --blue: #ff6b72; --blue-h: #ff8a90; --blue-soft: #3a1c1e; --blue-line: #5a2a2d;
  --orange: #ff6b72; --orange-h: #ff8a90; --orange-soft: #3a1c1e; --orange-ink: #ff9aa0;
  --green: #6fcf97; --green-soft: #183326; --red: #ff6b72; --red-soft: #3a1c1e; --gold: #f2cd77; --gold-soft: #33290f;
  --paper: #1e1e1e; --bg: #161616; --bg-2: #222222; --line: #333333; --line-2: #444444; --field: #161616;
  --btn-bg: #c42a34; --btn-ink: #ffffff; --btn-hover: #d8404a;
  --btn2-bg: #f2f2f2; --btn2-ink: #161616; --dot: #ff6b72;
  --side-bg: #111111; --side-ink: #f2f2f2; --side-muted: #9a9a9a; --side-line: #262626; --side-active: #2c2c2c; --side-active-ink: #fff; --side-mark: #c42a34; --side-mark-ink: #fff;
  --block-bg: #222222; --block-2: #2c2c2c; --block-ink: #fff; --block-muted: #c9c9c9; --block-line: rgba(255, 255, 255, .12); --block-accent: #ff6b72;
  --font-head: "Open Sans", "Inter", system-ui, sans-serif; --head-weight: 700; --head-track: -.01em;
  --radius: 4px; --r-btn: 4px; --r-chip: 4px; --shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ---------- shared wiring for the new tokens ---------- */
.eyebrow::before, .scope-tag i { background: var(--dot, var(--block-accent)); }
.quote-card::before { color: var(--dot, var(--block-accent)); }
.btn.orange, .student-welcome .btn.orange { background: var(--btn2-bg); color: var(--btn2-ink); }
.btn.orange:hover, .student-welcome .btn.orange:hover { background: var(--btn2-bg); filter: brightness(1.07); }
.tool-options button.active { background: var(--btn2-bg); color: var(--btn2-ink); border-color: var(--btn2-bg); }
.ad-banner.tone-navy { --ad-bg: var(--block-bg); --ad-btn: var(--btn2-bg); --ad-btn-ink: var(--btn2-ink); }
.price-card.goldc h3 { color: var(--dot); }
.chart-bar { background: color-mix(in srgb, var(--btn-bg) 26%, var(--bg-2)); }
.chart-bar.current, .heat i.l4, .legend i.l4 { background: var(--btn-bg); }
.text-link { color: var(--blue); }
.tabs a.active, .tabs button.active { color: var(--blue); border-color: var(--blue); }
.progress span { background: var(--btn-bg); }
.promo-bar { display: none; }


@media (max-width: 620px) {
}

/* ads follow each design's palette (admin still picks the tone) */
.ad-banner.tone-light { --ad-btn: var(--btn-bg); --ad-btn-ink: var(--btn-ink); }
:root[data-design="gallery"] .ad-banner.tone-eosin, :root[data-design="gallery"] .ad-banner.tone-blue, :root[data-design="gallery"] .ad-banner.tone-navy { --ad-bg: #1f1f1e; --ad-muted: #bcb9ae; --ad-btn: #ffffff; --ad-btn-ink: #0a0a0a; }
:root[data-design] .chart-bar { background: color-mix(in srgb, var(--btn-bg) 30%, var(--bg-2)); }
:root[data-design] .chart-bar.current { background: var(--btn-bg); }

/* =====================================================================
   gallery (Kajabi) — page chrome + home
   ===================================================================== */
:root[data-design="gallery"] body { font-feature-settings: "cv11", "ss01"; }
:root[data-design="gallery"] .site-header { background: var(--bg); border-bottom: 1px solid var(--side-line); box-shadow: none; }
:root[data-design="gallery"] .public-nav a { font-size: 14px; font-weight: 500; color: var(--ink); }
:root[data-design="gallery"] .brand-mark { background: var(--ink); color: var(--bg); border-radius: 2px; }
:root[data-design="gallery"] .btn { font-weight: 500; letter-spacing: 0; box-shadow: none; }
:root[data-design="gallery"] .btn.secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
:root[data-design="gallery"] .btn.orange { box-shadow: inset 0 0 0 1px var(--ink); }
:root[data-design="gallery"] .student-welcome .btn.orange { box-shadow: none; }
:root[data-design="gallery"] .text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
:root[data-design="gallery"] .text-link:hover { text-decoration-color: var(--ink); }
:root[data-design="gallery"] .panel, :root[data-design="gallery"] .stat-card, :root[data-design="gallery"] .course-card, :root[data-design="gallery"] .sec-card, :root[data-design="gallery"] .price-card, :root[data-design="gallery"] .quote-card, :root[data-design="gallery"] .topic-list { box-shadow: none !important; }
:root[data-design="gallery"] .course-card:hover, :root[data-design="gallery"] .sec-card:hover { border-color: var(--ink); }
:root[data-design="gallery"] .page-heading h1, :root[data-design="gallery"] .section-heading h2 { font-weight: 400; letter-spacing: -.025em; }
:root[data-design="gallery"] .page-heading h1 .serif, :root[data-design="gallery"] .section-heading h2 .serif { color: inherit !important; }
:root[data-design="gallery"] .stat-icon { background: var(--bg-2); color: var(--ink); }
:root[data-design="gallery"] .stat-value { font-weight: 400; letter-spacing: -.02em; }
:root[data-design="gallery"] .badge { border-radius: 9999px; }
:root[data-design="gallery"] .tag-button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-design="gallery"] .price-card.recommended { border-color: var(--ink); }
:root[data-design="gallery"] .price-card.goldc { background: #1f1f1e; }
:root[data-design="gallery"] .price-card.goldc h3 { color: #fff; }
:root[data-design="gallery"] .price-label { background: var(--ink); color: var(--bg); }
:root[data-design="gallery"] .side-nav a.active { font-weight: 600; }
:root[data-design="gallery"] .announcement { background: var(--ink); color: var(--bg); }
:root[data-design="gallery"] .tabs a.active, :root[data-design="gallery"] .tabs button.active { color: var(--ink); border-color: var(--ink); }
:root[data-design="gallery"] .tool-band .eyebrow::before { background: #fff; }
:root[data-design="gallery"] .site-footer { background: var(--bg); border-top: 1px solid var(--line); }

.g-wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }
.g-hero { padding: 72px 0 48px; text-align: center; }
.g-eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 14px; letter-spacing: 0; }
.g-hero h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin: 0 auto; max-width: 18ch; }
.g-lead { font-size: 16px; line-height: 1.5; color: var(--body); margin: 14px auto 0; max-width: 520px; }
.g-search { display: flex; align-items: stretch; max-width: 520px; margin: 26px auto 0; border: 1px solid var(--line); border-radius: 2px; background: var(--field); height: 48px; position: relative; }
.g-search:focus-within { border-color: var(--ink); }
.g-search-ic { display: grid; place-items: center; width: 42px; color: var(--muted); }
.g-search-ic .icon { width: 18px; height: 18px; }
.g-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.g-search input::placeholder { color: var(--muted); }
.g-search .btn { border-radius: 0 1px 1px 0; height: auto; min-height: 0; margin: -1px -1px -1px 0; padding: 0 22px; font-size: 15px; }
.g-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.g-tags button { border: 1px solid var(--line); background: transparent; color: var(--body); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 9999px; cursor: pointer; }
.g-tags button:hover { border-color: var(--ink); color: var(--ink); }

.g-strip-wrap { position: relative; }
.g-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 6); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-strip::-webkit-scrollbar { display: none; }
.g-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; }
.g-tile > svg, .g-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g-tile:hover > svg, .g-tile:hover > img { transform: scale(1.04); }
.g-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; background: linear-gradient(to top, rgba(10, 10, 10, .72), rgba(10, 10, 10, 0)); display: grid; gap: 3px; }
.g-tile-cap b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.g-tile-cap small { font-size: 12.5px; opacity: .82; line-height: 1.35; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0a0a0a; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.g-arrow.prev { left: 14px; } .g-arrow.prev .icon { transform: rotate(180deg); }
.g-arrow.next { right: 14px; }
.g-arrow .icon { width: 18px; height: 18px; }

.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 64px 0; gap: 24px; }
.g-stats b { display: block; font-family: var(--font-head); font-size: 48px; font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.g-stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

.g-band { background: #1f1f1e; color: #fff; padding: 80px 0; }
.g-band h2, .g-atlas h2, .g-price h2, .g-faq h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.g-band h2 { text-align: center; font-size: clamp(26px, 2.6vw, 36px); color: #fff; }
.g-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 36px; }
.g-pills button { border: 0; background: transparent; color: rgba(255, 255, 255, .62); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 9999px; cursor: pointer; }
.g-pills button:hover { color: #fff; }
.g-pills button.on { background: #fff; color: #0a0a0a; }
.g-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.g-card { display: grid; gap: 4px; color: #fff; text-decoration: none; min-width: 0; }
.g-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; margin-bottom: 10px; background: #2a2a29; }
.g-card-img > svg, .g-card-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-card:hover .g-card-img > svg, .g-card:hover .g-card-img > img { transform: scale(1.04); }
.g-lock { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 10, 10, .6); display: grid; place-items: center; }
.g-lock .icon { width: 14px; height: 14px; color: #fff; }
.g-card b { font-size: 15px; font-weight: 500; line-height: 1.35; }
.g-card small { font-size: 13px; color: #a19e96; }
.g-center { text-align: center; margin-top: 44px; }
.btn.g-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn.g-ghost:hover { border-color: #fff; background: transparent; }

.g-frame-sec { padding: 80px 0 0; }
.g-frame { position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 15 / 8; background: #1f1f1e; }
.g-frame-img { position: absolute; inset: 0; }
.g-frame-img > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-play { position: absolute; left: 34%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.g-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.g-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.g-frame-cap { position: absolute; left: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #fff; background: rgba(10, 10, 10, .55); padding: 6px 12px; border-radius: 2px; }
.g-frame-cap i { width: 40px; height: 2px; background: #fff; display: block; }
.g-over { position: absolute; right: 28px; top: 28px; bottom: 28px; width: min(340px, 34%); background: #fff; color: #0a0a0a; border-radius: 8px; padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.g-over > b { font-size: 16px; font-weight: 600; }
.g-over > p { font-size: 14px; color: #535250; margin: 6px 0 14px; line-height: 1.45; }
.g-over ol { list-style: none; margin: 0 0 auto; padding: 0; }
.g-over li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #e9e8e7; font-size: 14px; font-weight: 500; }
.g-over li .icon { width: 18px; height: 18px; color: #535250; }
.g-over li span { flex: 1; }
.g-over li em { font-style: normal; font-size: 12px; color: #949189; }
.g-over .btn { margin-top: 16px; justify-content: center; background: #0a0a0a; color: #fff; }

.g-atlas { padding: 80px 0 0; }
.g-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.g-atlas h2, .g-price h2, .g-faq h2 { font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }
.g-split p, .g-sub, .g-faq p { font-size: 15px; color: var(--body); margin: 8px 0 0; max-width: 520px; line-height: 1.5; }
.g-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; white-space: nowrap; }
.g-link .icon { width: 16px; height: 16px; }
.g-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.g-mosaic a { display: grid; gap: 3px; color: var(--ink); text-decoration: none; min-width: 0; }
.g-m-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; margin-bottom: 8px; }
.g-m-img > svg, .g-m-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-mosaic a:hover .g-m-img > svg, .g-mosaic a:hover .g-m-img > img { transform: scale(1.03); }
.g-mosaic b { font-size: 14px; font-weight: 600; }
.g-mosaic small { font-size: 13px; color: var(--muted); }
.g-note { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; }

.g-quote { background: var(--bg-2); margin-top: 80px; padding: 48px 0; }
.g-quote .quote-card { background: transparent; border: 0; padding: 0; text-align: center; }
.g-quote .quote-card::before { color: var(--ink); }
.g-quote .quote-card .q { font-size: 20px; }

.g-price { padding: 80px 0 40px; text-align: center; }
.g-price .g-sub { margin-inline: auto; }
.g-price .pricing-controls { margin-top: 24px; }
.g-price .pricing-grid { text-align: left; }
.g-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 40px 0 88px; border-top: 1px solid var(--line); }
.g-faq .g-link { margin-top: 16px; }

@media (max-width: 1100px) {
  .g-strip { grid-auto-columns: calc(100% / 4); }
  .g-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-over { width: 42%; }
}
@media (max-width: 860px) {
  .g-wrap { width: calc(100% - 32px); }
  .g-hero { padding: 40px 0 32px; }
  .g-hero h1 { font-size: 30px; }
  .g-lead { font-size: 15px; }
  .g-strip { grid-auto-columns: 62%; }
  .g-arrow { display: none; }
  .g-stats { padding: 40px 0; gap: 8px; }
  .g-stats b { font-size: 32px; }
  .g-stats span { font-size: 12.5px; }
  .g-band { padding: 56px 0; }
  .g-pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 20px -16px 28px; padding: 0 16px; }
  .g-pills button { white-space: nowrap; }
  .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .g-card b { font-size: 14px; }
  .g-frame-sec, .g-atlas { padding-top: 56px; }
  .g-frame { aspect-ratio: auto; overflow: visible; background: none; }
  .g-frame-img { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; }
  .g-play { left: 50%; width: 60px; height: 60px; }
  .g-frame-cap { left: 12px; bottom: 12px; }
  .g-over { position: static; width: auto; margin-top: 12px; border: 1px solid var(--line); box-shadow: none; padding: 20px; background: var(--paper); color: var(--ink); }
  .g-over > p, .g-over li .icon { color: var(--body); }
  .g-over li { border-color: var(--line); }
  .g-over .btn { background: var(--btn-bg); color: var(--btn-ink); }
  .g-split { flex-direction: column; align-items: flex-start; gap: 10px; }
  .g-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .g-quote { margin-top: 56px; padding: 36px 0; }
  .g-quote .quote-card .q { font-size: 17px; }
  .g-price { padding-top: 56px; }
  .g-faq { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
}
:root[data-design="gallery"] .price-card.goldc .btn.secondary { border-color: rgba(255, 255, 255, .6); color: #fff; }
:root[data-design="gallery"] .price-card.goldc .btn.secondary:hover { border-color: #fff; }
.g-faq.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 40px 0 88px; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 860px) { .g-faq.faq-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; } }


/* =====================================================================
   exam (USMLE-Rx structure) — chrome + home
   ===================================================================== */
:root[data-design="exam"] .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
:root[data-design="exam"] .public-nav a { font-weight: 600; font-size: 15px; }
:root[data-design="exam"] .brand-mark { background: #12204a; color: #fff; }
:root[data-design="exam"] .btn { font-weight: 600; }
:root[data-design="exam"] .page-heading h1 .serif, :root[data-design="exam"] .section-heading h2 .serif { color: var(--orange) !important; font-family: inherit; font-style: normal; }
:root[data-design="exam"] .price-card.recommended { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow); }
:root[data-design="exam"] .price-label { background: var(--orange); color: #fff; }
:root[data-design="exam"] .price-card.goldc { background: #12204a; }
:root[data-design="exam"] .price-card.goldc h3 { color: #ffd27a; }
:root[data-design="exam"] .price-card.goldc .btn.secondary { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
:root[data-design="exam"] .stat-icon { background: var(--blue-soft); color: var(--blue); }
:root[data-design="exam"] .tag-button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-design="exam"] .student-welcome .btn.orange { background: var(--orange); color: #fff; }
:root[data-design="exam"] .ad-banner.tone-eosin { --ad-bg: linear-gradient(120deg, #e8553a, #f07a4a); --ad-btn: #fff; --ad-btn-ink: #c43c22; }
:root[data-design="exam"] .ad-banner.tone-navy, :root[data-design="exam"] .ad-banner.tone-blue { --ad-bg: #12204a; --ad-btn: #e8553a; --ad-btn-ink: #fff; }
:root[data-design="exam"] .site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }

.x-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.x-btns { display: flex; flex-wrap: wrap; gap: 12px; } .x-btns.c { justify-content: center; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; background: #e8553a; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid #e8553a; transition: background .2s, transform .2s, box-shadow .2s; }
.x-btn:hover { background: #cf4429; border-color: #cf4429; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 85, 58, .28); }
.x-btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.x-btn.ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.x-btn.light { background: #fff; color: #12204a; border-color: #fff; }
.x-btn.light:hover { background: #fdece8; border-color: #fdece8; }
.x-btn.ghost-l { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.x-btn.ghost-l:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.x-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; }
.x-link .icon { width: 16px; height: 16px; transition: transform .2s; }
a:hover > .x-link .icon, .x-link:hover .icon { transform: translateX(3px); }
.x-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0 0 14px; }
.x-h2.c { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: 40px; }
.x-h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); margin: 56px 0 20px; text-align: center; }
.x-sec { padding: 88px 0; } .x-sec.soft { background: var(--bg-2); }
.x-sec p, .x-promo p, .x-app-band p, .x-about p { color: var(--body); font-size: 16px; line-height: 1.65; margin: 0 0 16px; max-width: 520px; }
.x-center { text-align: center; margin-top: 40px; }

.x-hero { background: radial-gradient(90% 120% at 100% 0%, #eaf1fd 0%, rgba(234, 241, 253, 0) 60%), linear-gradient(180deg, #f6f8fd 0%, #ffffff 100%); padding: 64px 0 80px; overflow: hidden; }
:root[data-design="exam"][data-theme="dark"] .x-hero { background: radial-gradient(90% 120% at 100% 0%, #1a2a55 0%, rgba(26, 42, 85, 0) 60%), var(--bg); }
.x-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.x-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.025em; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.x-hero-copy > p { font-size: 18px; line-height: 1.6; color: var(--body); margin: 0 0 28px; max-width: 480px; }
.x-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--body); }
.x-trust li { display: inline-flex; align-items: center; gap: 7px; }
.x-trust .icon { width: 17px; height: 17px; color: #1f8a5b; }
.x-hero-art { position: relative; min-height: 400px; }
.x-laptop { position: relative; width: 100%; max-width: 600px; margin-left: auto; }
.x-screen { background: #0e1730; border-radius: 16px 16px 4px 4px; padding: 12px; box-shadow: 0 30px 60px rgba(18, 32, 74, .25); }
.x-app { display: grid; grid-template-columns: 44px 1fr; background: #fff; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10.4; }
.x-app-side { background: #12204a; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; }
.x-app-side i { width: 18px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .25); display: block; }
.x-app-side i.logo { width: 22px; height: 22px; border-radius: 6px; background: #e8553a; margin-bottom: 6px; }
.x-app-side i.on { background: #fff; }
.x-app-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: #12204a; }
.x-app-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; } .x-app-top span { font-size: 11px; color: #67708a; font-weight: 700; }
.x-app-bar { height: 5px; background: #eaf1fd; border-radius: 3px; } .x-app-bar i { display: block; height: 100%; background: #e8553a; border-radius: 3px; }
.x-app-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.x-app-img { border-radius: 8px; overflow: hidden; } .x-app-img svg { width: 100%; height: 100%; display: block; }
.x-app-q { display: flex; flex-direction: column; gap: 6px; font-size: 11px; min-width: 0; }
.x-app-q small { color: #67708a; font-weight: 700; font-size: 10px; } .x-app-q p { margin: 0 0 2px; font-weight: 700; font-size: 12px; line-height: 1.35; color: #12204a; }
.x-app-q span { border: 1px solid #e2e7f0; border-radius: 6px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-app-q span.ok { border-color: #1f8a5b; background: #e4f4ec; color: #145c3c; font-weight: 700; }
.x-base { height: 14px; margin: 0 -6%; background: linear-gradient(180deg, #d5dbe8, #b7c0d3); border-radius: 0 0 14px 14px; }
.x-phone { position: absolute; left: -2%; bottom: -24px; width: 168px; background: #0e1730; border-radius: 28px; padding: 9px; box-shadow: 0 24px 50px rgba(18, 32, 74, .3); }
.x-ph-in { background: #fff; border-radius: 21px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; color: #12204a; }
.x-ph-in small { font-size: 10px; font-weight: 700; color: #67708a; }
.x-ph-img { border-radius: 12px; overflow: hidden; aspect-ratio: 1; } .x-ph-img svg { width: 100%; height: 100%; display: block; }
.x-ph-in b { font-size: 12px; line-height: 1.3; }
.x-ph-in span { font-size: 11px; font-weight: 700; text-align: center; background: #e8553a; color: #fff; border-radius: 999px; padding: 7px; }

.x-stats { background: #12204a; color: #fff; }
.x-stats .x-wrap { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); text-align: center; }
.x-stats .x-wrap > div { padding: 30px 12px; border-left: 1px solid rgba(255, 255, 255, .12); } .x-stats .x-wrap > div:first-child { border-left: 0; }
.x-stats b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.x-stats span { font-size: 14px; color: #b9c3de; font-weight: 600; }

.x-feat { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.x-feat-art { position: relative; min-height: 380px; } .x-feat-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-chip { position: absolute; left: 18px; bottom: 18px; background: rgba(18, 32, 74, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.x-feat-b { padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.x-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e8553a; background: #fdece8; padding: 6px 12px; border-radius: 999px; }
.x-feat-b h3 { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--ink); margin: 14px 0 10px; letter-spacing: -.02em; }
.x-feat-b p { margin-bottom: 18px; }
.x-feat-b ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.x-feat-b li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); }
.x-feat-b li .icon { width: 18px; height: 18px; color: var(--blue); }
.x-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.x-tool { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.x-tool:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.x-tool-img { position: relative; display: block; aspect-ratio: 16 / 10; } .x-tool-img svg { width: 100%; height: 100%; display: block; }
.x-tool-img i { position: absolute; left: 16px; bottom: -20px; width: 44px; height: 44px; border-radius: 12px; background: #12204a; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(18, 32, 74, .25); }
.x-tool-img i .icon { width: 22px; height: 22px; }
.x-tool b { font-family: var(--font-head); font-size: 17px; font-weight: 700; padding: 32px 18px 0; }
.x-tool p { font-size: 14px; color: var(--body); line-height: 1.5; margin: 6px 18px 14px; flex: 1; }
.x-tool .x-link { padding: 0 18px 20px; }

.x-promo { background: linear-gradient(115deg, #12204a 0%, #1f3a8a 100%); color: #fff; padding: 72px 0; overflow: hidden; }
.x-promo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.x-promo .x-h2 { color: #fff; } .x-promo p { color: #c9d3ee; }
.x-promo-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-4deg); }
.x-promo-art span { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); border: 3px solid rgba(255, 255, 255, .9); }
.x-promo-art span:nth-child(2) { transform: translateY(-26px); }
.x-promo-art svg { width: 100%; height: 100%; display: block; }

.x-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.x-split .x-btn { margin-top: 8px; }
.x-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.x-mods a { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 12px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.x-mods a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.x-mods span { display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; margin-bottom: 6px; } .x-mods span svg, .x-mods span img { width: 100%; height: 100%; display: block; object-fit: cover; }
.x-mods b { font-size: 13.5px; line-height: 1.3; padding: 0 4px; } .x-mods small { font-size: 12px; color: var(--muted); padding: 0 4px; }

.x-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-pil { background: var(--paper); border-radius: 20px; padding: 32px 28px; border: 1px solid var(--line); }
.x-pil i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fdece8; color: #e8553a; margin-bottom: 18px; }
.x-pil:nth-child(2) i { background: #eaf1fd; color: #2563d9; } .x-pil:nth-child(3) i { background: #e4f4ec; color: #1f8a5b; }
.x-pil i .icon { width: 24px; height: 24px; }
.x-pil b { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 8px; }
.x-pil p { font-size: 15px; margin: 0; }

.x-app-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: linear-gradient(120deg, #fdece8, #eaf1fd); border-radius: 28px; padding: 56px 64px; }
:root[data-design="exam"][data-theme="dark"] .x-app-band { background: linear-gradient(120deg, #3d2124, #1a2a55); }
.x-app-art { position: relative; height: 320px; }
.x-app-art .x-phone { left: 50%; bottom: auto; top: 0; transform: translateX(-50%) rotate(6deg); width: 190px; }
.x-quote { padding: 0 0 20px; }
.x-quote .quote-card { max-width: 820px; margin: 0 auto; }
.x-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.x-about-art { max-width: 380px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 14px #eaf1fd, 0 0 0 15px #c6d7f7; justify-self: center; }
.x-about-art svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.x-cta { background: #12204a; color: #fff; text-align: center; padding: 80px 0; background-image: radial-gradient(60% 120% at 50% 120%, rgba(232, 85, 58, .35), rgba(232, 85, 58, 0)); }
.x-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; margin: 0 auto 14px; max-width: 760px; color: #fff; text-wrap: balance; }
.x-cta p { color: #c9d3ee; font-size: 17px; margin: 0 auto 28px; max-width: 600px; }

@media (max-width: 1000px) {
  .x-hero-in, .x-split, .x-promo-in, .x-about { grid-template-columns: 1fr; }
  .x-hero-art { min-height: 0; margin-top: 10px; }
  .x-feat { grid-template-columns: 1fr; } .x-feat-art { min-height: 260px; }
  .x-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-app-band { grid-template-columns: 1fr; padding: 40px 32px; }
}
@media (max-width: 680px) {
  .x-wrap { width: calc(100% - 32px); }
  .x-hero { padding: 36px 0 56px; }
  .x-hero h1 { font-size: 34px; }
  .x-hero-copy > p { font-size: 16px; }
  .x-btns .x-btn { flex: 1 1 100%; }
  .x-hero-art .x-phone { display: none; }
  .x-phone { width: 120px; border-radius: 22px; padding: 7px; bottom: -30px; } .x-ph-in { border-radius: 16px; padding: 10px 8px; } .x-ph-in b { font-size: 10px; } .x-ph-in span { font-size: 9px; padding: 5px; }
  .x-app-q span:nth-of-type(3) { display: none; }
  .x-stats .x-wrap { grid-template-columns: repeat(2, 1fr); } .x-stats .x-wrap > div { padding: 20px 8px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); } .x-stats .x-wrap > div:nth-child(-n+2) { border-top: 0; }
  .x-sec { padding: 56px 0; }
  .x-feat-b { padding: 26px 22px; } .x-feat-b ul { grid-template-columns: 1fr; }
  .x-tools { grid-template-columns: 1fr; gap: 14px; }
  .x-promo { padding: 56px 0; } .x-promo-art { gap: 8px; }
  .x-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-pillars { grid-template-columns: 1fr; }
  .x-app-band { padding: 32px 22px; border-radius: 20px; } .x-app-art { height: 280px; }
  .x-about-art { max-width: 240px; }
  .x-cta { padding: 56px 0; }
}

/* =====================================================================
   text (Pathoma structure) — chrome + home
   ===================================================================== */
:root[data-design="text"] body { font-family: "Open Sans", "Inter", system-ui, sans-serif; }
:root[data-design="text"] .site-header { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
:root[data-design="text"] .public-nav a { font-weight: 600; font-size: 14px; color: var(--body); }
:root[data-design="text"] .public-nav a:hover, :root[data-design="text"] .public-nav a.active { color: var(--blue); }
:root[data-design="text"] .brand-mark { background: #b3202a; color: #fff; }
:root[data-design="text"] .btn { font-weight: 700; }
:root[data-design="text"] .page-heading h1 .serif, :root[data-design="text"] .section-heading h2 .serif { color: var(--blue) !important; font-family: inherit; font-style: normal; }
:root[data-design="text"] .price-card.recommended { border-color: #b3202a; }
:root[data-design="text"] .price-label { background: #b3202a; color: #fff; }
:root[data-design="text"] .price-card.goldc { background: #2b2b2b; }
:root[data-design="text"] .price-card.goldc h3 { color: #f2cd77; }
:root[data-design="text"] .price-card.goldc .btn.secondary { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
:root[data-design="text"] .tag-button.active { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }
:root[data-design="text"] .stat-icon { background: var(--blue-soft); color: var(--blue); }
:root[data-design="text"] .ad-banner.tone-eosin, :root[data-design="text"] .ad-banner.tone-blue { --ad-bg: #b3202a; --ad-btn: #fff; --ad-btn-ink: #8f1820; }
:root[data-design="text"] .ad-banner.tone-navy { --ad-bg: #2b2b2b; --ad-btn: #b3202a; --ad-btn-ink: #fff; }
:root[data-design="text"] .student-welcome .btn.orange { background: #b3202a; color: #fff; }
:root[data-design="text"] .site-footer { background: #222222; color: #bdbdbd; border-top: 0; }
:root[data-design="text"] .site-footer h4, :root[data-design="text"] .site-footer h3, :root[data-design="text"] .site-footer b, :root[data-design="text"] .site-footer strong, :root[data-design="text"] .site-footer .brand-name { color: #ffffff; }
:root[data-design="text"] .site-footer a { color: #bdbdbd; } :root[data-design="text"] .site-footer a:hover { color: #fff; }
:root[data-design="text"] .site-footer .brand-name small, :root[data-design="text"] .site-footer p { color: #9a9a9a; }

.b-wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.b-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; background: #b3202a; color: #fff; border: 2px solid #b3202a; border-radius: 4px; font-weight: 700; font-size: 17px; text-decoration: none; transition: background .2s, padding .2s; }
.b-btn:hover { background: #8f1820; border-color: #8f1820; padding: 0 36px; }
.b-btn.light { background: #fff; color: #b3202a; border-color: #fff; } .b-btn.light:hover { background: #fbecec; border-color: #fbecec; }
.b-kick { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: #b3202a; margin: 0 0 22px; }
.b-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.b-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--body); }
.b-list .icon { width: 20px; height: 20px; flex: none; color: #b3202a; margin-top: 2px; }
.b-free { font-weight: 800; font-size: 17px; color: var(--ink); margin: 0 0 16px; }

.b-hero { background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%); padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
:root[data-design="text"][data-theme="dark"] .b-hero { background: linear-gradient(180deg, #222 0%, #161616 100%); }
.b-hero-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.b-hero h1 { font-family: "Open Sans", sans-serif; font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 10px; }
.b-hero h1 a { color: var(--ink); text-decoration: none; } .b-hero h1 a:hover { color: #b3202a; }

.b-book { position: relative; width: min(330px, 80%); margin: 0 auto; perspective: 1400px; }
.b-book-3d { position: relative; aspect-ratio: 3 / 4; transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .6s ease; }
.b-book:hover .b-book-3d { transform: rotateY(-10deg) rotateX(2deg); }
.b-cover { position: absolute; inset: 0; background: #fff; border-radius: 3px 8px 8px 3px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 6px 0 10px rgba(0, 0, 0, .12); transform: translateZ(14px); border: 1px solid #ddd; }
.b-cover-top { background: #b3202a; color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; }
.b-cover-top span { font-weight: 800; letter-spacing: .18em; font-size: 18px; } .b-cover-top small { font-size: 11px; opacity: .85; font-weight: 600; }
.b-cover-img { flex: 1; min-height: 0; } .b-cover-img svg { width: 100%; height: 100%; display: block; }
.b-cover-t { padding: 14px 18px 18px; border-top: 4px solid #b3202a; }
.b-cover-t b { display: block; font-size: 18px; line-height: 1.2; color: #2b2b2b; font-weight: 800; }
.b-cover-t small { display: block; font-size: 8.5px; letter-spacing: .1em; color: #b3202a; font-weight: 700; margin-top: 6px; }
.b-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 28px; background: linear-gradient(90deg, #6e1016, #8f1820); transform: rotateY(-90deg) translateZ(0) translateX(-14px); transform-origin: left; display: flex; align-items: center; justify-content: center; }
.b-spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.b-pages { position: absolute; top: 4px; bottom: 4px; right: -12px; width: 26px; background: repeating-linear-gradient(90deg, #fafafa 0 2px, #e4e4e4 2px 3px); transform: rotateY(90deg) translateZ(300px); display: none; }
.b-book-3d::after { content: ""; position: absolute; top: 5px; bottom: 5px; right: -10px; width: 12px; background: repeating-linear-gradient(180deg, #fbfbfb 0 2px, #e6e6e6 2px 3px); border-radius: 0 3px 3px 0; transform: translateZ(4px); }
.b-shadow { position: absolute; left: 8%; right: 0; bottom: -26px; height: 30px; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0)); }

.b-sec { padding: 88px 0; } .b-sec.grey { background: var(--bg-2); }
.b-sec h2, .b-cta h2 { font-family: "Open Sans", sans-serif; font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
.b-sec h2.c { text-align: center; }
.b-sub { text-align: center; color: var(--body); font-size: 16px; margin: 0 auto 40px; max-width: 560px; }
.b-on { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.b-player { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .14); overflow: hidden; color: #2b2b2b; }
.b-pl-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f0f0f0; border-bottom: 1px solid #e3e3e3; }
.b-pl-top i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d0; } .b-pl-top i:first-child { background: #e25a5a; }
.b-pl-top span { margin-left: 10px; font-size: 11px; color: #7a7a7a; background: #fff; border-radius: 3px; padding: 3px 10px; flex: 1; }
.b-pl-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.b-pl-video { position: relative; aspect-ratio: 16 / 11; background: #111; } .b-pl-video svg { width: 100%; height: 100%; display: block; opacity: .92; }
.b-pl-play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(179, 32, 42, .92); color: #fff; display: grid; place-items: center; }
.b-pl-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.b-pl-bar { position: absolute; left: 12px; right: 12px; bottom: 34px; height: 4px; background: rgba(255, 255, 255, .35); border-radius: 2px; } .b-pl-bar i { display: block; width: 38%; height: 100%; background: #b3202a; border-radius: 2px; }
.b-pl-video em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.b-pl-list { list-style: none; margin: 0; padding: 6px 0; font-size: 12px; border-left: 1px solid #e3e3e3; }
.b-pl-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; color: #555; line-height: 1.3; }
.b-pl-list li span { font-weight: 800; color: #9a9a9a; } .b-pl-list li small { margin-left: auto; color: #9a9a9a; }
.b-pl-list li.on { background: #fbecec; color: #2b2b2b; font-weight: 700; box-shadow: inset 3px 0 0 #b3202a; } .b-pl-list li.on span { color: #b3202a; }

.b-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.b-ch { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.b-ch-h { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 3px solid #b3202a; }
.b-ch-img { width: 52px; height: 52px; border-radius: 4px; overflow: hidden; flex: none; } .b-ch-img svg { width: 100%; height: 100%; display: block; }
.b-ch-h small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b3202a; }
.b-ch-h b { font-size: 17px; color: var(--ink); }
.b-ch ol { list-style: none; margin: 0; padding: 6px 0; }
.b-ch li a { display: flex; gap: 12px; align-items: baseline; padding: 9px 18px; text-decoration: none; color: var(--body); font-size: 15px; }
.b-ch li a:hover { background: var(--bg-2); color: var(--ink); }
.b-ch li a span { font-weight: 800; color: var(--muted); font-size: 13px; width: 22px; flex: none; }
.b-ch li a em { font-style: normal; flex: 1; }
.b-ch li a small { color: var(--muted); font-size: 12px; }
.b-freetag { font-style: normal; font-size: 11px; font-weight: 700; color: #2e7d4f; background: #e6f3ea; padding: 2px 8px; border-radius: 3px; }
.b-quote { padding: 64px 0 0; } .b-quote .quote-card { max-width: 820px; margin: 0 auto; }
.b-cta { background: #b3202a; color: #fff; text-align: center; padding: 72px 0; margin-top: 64px; }
.b-cta h2 { color: #fff; } .b-cta p { color: #fbdcdd; font-size: 17px; margin: 0 auto 26px; max-width: 560px; }

@media (max-width: 900px) {
  .b-hero-in, .b-on { grid-template-columns: 1fr; gap: 44px; }
  .b-hero-art { order: -1; }
  .b-toc { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .b-wrap { width: calc(100% - 32px); }
  .b-hero { padding: 40px 0 56px; }
  .b-book { width: 220px; }
  .b-hero h1 { font-size: 30px; }
  .b-btn { width: 100%; }
  .b-sec { padding: 56px 0; }
  .b-pl-body { grid-template-columns: 1fr; } .b-pl-list { border-left: 0; border-top: 1px solid #e3e3e3; } .b-pl-list li:nth-child(n+4) { display: none; }
  .b-list li { font-size: 15px; }
}
.b-toc { display: block; columns: 2; column-gap: 22px; }
.b-toc .b-ch { break-inside: avoid; margin-bottom: 22px; display: inline-block; width: 100%; }
@media (max-width: 900px) { .b-toc { columns: 1; } }

/* ---------- home media slots: uploaded images fill the same frames as the sample micrographs ---------- */
.slot-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.g-frame-img > img, .x-feat-art > img { position: absolute; inset: 0; }
.x-about-art > img { border-radius: 50%; }
.x-ph-img img, .x-app-img img, .x-tool-img img, .x-promo-art img, .b-cover-img img, .b-pl-video img, .b-ch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-pl-video img { position: absolute; inset: 0; }
.x-tool-img { overflow: visible; } .x-tool-img > .slot-img, .x-tool-img > svg { border-radius: 18px 18px 0 0; }
/* admin editor */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.slot-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.slot-card:hover { border-color: var(--ink); }
.slot-thumb { display: block; width: 100%; max-height: 220px; overflow: hidden; border-radius: calc(var(--radius) - 2px); background: var(--bg-2); }
.slot-thumb.round, .slot-prev.round { border-radius: 50%; }
.slot-thumb > svg, .slot-thumb > img, .slot-prev > svg, .slot-prev > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slot-meta { display: grid; gap: 6px; } .slot-meta b { font-size: 14px; } .slot-meta .small { line-height: 1.4; }
.slot-edit-ic { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.slot-edit-ic .icon { width: 16px; height: 16px; }
.slot-edit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.slot-prev { position: relative; width: 100%; max-height: 340px; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); cursor: crosshair; }
.slot-prev .dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); pointer-events: none; }
.slot-edit .field input + input { margin-top: 6px; }
@media (max-width: 760px) { .slot-edit { grid-template-columns: 1fr; } }

/* =====================================================================
   Phones: app feel — bottom tab bar on the public site, bottom sheets, swipe rails, press states
   ===================================================================== */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, 0); display: flex; align-items: flex-end; transition: background .22s; }
.sheet-backdrop.in { background: rgba(10, 10, 10, .45); }
.sheet { width: 100%; max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sheet-backdrop.in .sheet { transform: translateY(0); }
.sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; } .sheet-head b { font-size: 17px; }
.sheet-list { display: grid; border-top: 1px solid var(--line); }
.sheet-list a { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.sheet-list a span { flex: 1; } .sheet-list a .icon { width: 20px; height: 20px; color: var(--muted); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; }
.sheet-cta { display: grid; gap: 10px; padding-top: 6px; } .sheet-cta .btn { justify-content: center; min-height: 50px; }

@media (max-width: 860px) {
  html { -webkit-tap-highlight-color: transparent; }
  a, button, label, summary { touch-action: manipulation; }
  input, select, textarea { font-size: 16px !important; }
  .site-header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 88%, transparent) !important; }
  .site-header .header-inner { min-height: 56px; }
  .site-header .brand-name small { display: none; }
  .site-header .header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-btn); }
  .site-header .header-actions .btn .icon { display: none; }
  .menu-button { display: none !important; }
  .public-nav { display: none !important; }
  .pub-tabbar { display: grid; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
  .toast-region { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .promo-bar { display: none !important; }
  /* press feedback like native apps */
  .btn, .g-card, .g-tile, .x-tool, .x-mods a, .x-btn, .b-btn, .b-ch li a, .course-card, .topic-row, .sec-card, .price-card, .tabbar a, .tabbar button, .slot-card { transition: transform .12s ease, background .2s; }
  .btn:active, .x-btn:active, .b-btn:active, .g-card:active, .g-tile:active, .x-tool:active, .x-mods a:active, .course-card:active, .topic-row:active, .sec-card:active, .tabbar a:active, .tabbar button:active, .slot-card:active { transform: scale(.97); }
  .g-card:hover .g-card-img > svg, .g-tile:hover > svg, .x-tool:hover { transform: none; }
  /* swipe rails instead of long stacks */
  .pricing-grid { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 14px 16px 10px; scroll-padding-inline: 16px; }
  .pricing-grid::-webkit-scrollbar, .g-cards::-webkit-scrollbar, .x-tools::-webkit-scrollbar, .x-pillars::-webkit-scrollbar, .g-mosaic::-webkit-scrollbar { display: none; }
  .pricing-grid > .price-card { scroll-snap-align: start; }
  .g-cards { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; }
  .g-cards > .g-card { scroll-snap-align: start; }
  .x-tools, .x-pillars { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; }
  .x-tools > *, .x-pillars > * { scroll-snap-align: start; }
  .swipe-hint { display: flex; }
}
.swipe-hint { display: none; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.swipe-hint .icon { width: 14px; height: 14px; }
.g-band .swipe-hint { color: #a19e96; }
@media (max-width: 600px) {
  .modal-backdrop { align-items: flex-end !important; padding: 0 !important; }
  .modal-backdrop .modal { width: 100% !important; max-width: none !important; max-height: 92vh; border-radius: 20px 20px 0 0 !important; animation: pxSheetUp .24s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-backdrop .modal::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
}
@keyframes pxSheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
/* payment receipt */
.rc-drop { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--bg-2); }
.rc-drop:hover { border-color: var(--ink); } .rc-drop > .icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.rc-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.rc-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--bg-2); flex: none; } .rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bk-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bk-list li:last-child { border-bottom: 0; }
.bk-list .icon { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 2px; }
.bk-list b { display: block; font-size: 14px; } .bk-list small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---- Imtihon home, 19 Oct: readable hero screens, Premium product preview, 16:9 lesson covers ---- */
.x-app-top small { font-size: 10.5px; font-weight: 700; color: #67708a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-app-title { font-family: var(--font-head); font-size: 15px; line-height: 1.25; color: #12204a; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.x-app-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e2e7f0; padding-bottom: 6px; }
.x-app-tabs i { font-style: normal; font-size: 10.5px; font-weight: 700; color: #67708a; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.x-app-tabs i.on { background: #12204a; color: #fff; }
.x-app-read { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-app-read h5 { margin: 0; font-size: 12.5px; line-height: 1.3; color: #12204a; font-weight: 800; }
.x-app-read p { margin: 0; font-size: 11px; line-height: 1.5; color: #3b4560; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.x-app-read span { display: block; height: 6px; border-radius: 3px; background: #eef1f6; } .x-app-read span.s { width: 70%; }
.x-app-q { background: #f7f9fc; border: 1px solid #e2e7f0; border-radius: 10px; padding: 9px; }
.x-app-q p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.x-app-q span { background: #fff; }
.x-ph-card { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, #12204a, #2b3f7a); color: #fff; display: flex; align-items: center; justify-content: center; padding: 14px 12px; text-align: center; }
.x-ph-card i { position: absolute; top: 8px; left: 10px; font-style: normal; font-weight: 800; font-size: 12px; color: #e8553a; }
.x-ph-card b { font-size: 13px; line-height: 1.35; color: #fff; }
.x-ph-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.x-ph-rate em { font-style: normal; font-size: 10px; font-weight: 700; text-align: center; border: 1px solid #e2e7f0; border-radius: 6px; padding: 3px 0; color: #67708a; }
.x-ph-rate em.on { border-color: #1f8a5b; background: #e4f4ec; color: #145c3c; }
.x-pv { display: flex; align-items: center; justify-content: center; padding: 34px; background: linear-gradient(135deg, #eaf1fd, #fdece8); }
:root[data-theme="dark"] .x-pv { background: linear-gradient(135deg, #1a2a55, #3d2124); }
.x-pv-win { width: 100%; max-width: 460px; background: #fff; border-radius: 16px; box-shadow: 0 24px 50px rgba(18, 32, 74, .18); overflow: hidden; color: #12204a; }
.x-pv-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #e2e7f0; }
.x-pv-head i { width: 9px; height: 9px; border-radius: 50%; background: #e2e7f0; } .x-pv-head i:first-child { background: #e8553a; }
.x-pv-head b { margin-left: 8px; font-size: 13px; font-weight: 800; }
.x-pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.x-pv-tile { display: flex; flex-direction: column; gap: 4px; border: 1px solid #e2e7f0; border-radius: 12px; padding: 12px; background: #f7f9fc; }
.x-pv-tile.big { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; background: #12204a; border-color: #12204a; color: #fff; }
.x-pv-tile.big small { margin-left: auto; color: #b9c3de; }
.x-pv-tile .icon { width: 20px; height: 20px; color: #e8553a; }
.x-pv-tile b { font-size: 13px; font-weight: 800; } .x-pv-tile small { font-size: 12px; font-weight: 700; color: #67708a; }
.x-pv-foot { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; } .x-pv-foot span { font-size: 11px; font-weight: 700; color: #67708a; }
@media (max-width: 640px) { .x-pv { padding: 18px; } .x-app-read p { -webkit-line-clamp: 3; } .x-app-tabs i:nth-child(4) { display: none; } }
.x-pv svg, .x-pv .icon { position: static; inset: auto; width: 20px; height: 20px; flex: 0 0 auto; }
.x-hero-art .x-phone { left: -13%; bottom: -34px; width: 150px; }
@media (max-width: 1100px) { .x-hero-art .x-phone { left: -4%; } }
