/* Deegeehub Academy course page (academy.html).
   Loaded after portfolio.css: reuses its header, logo, hero type, fan,
   cards, tags and browser frame, and adds the course sections. */

:root {
  --bg: #f4f1ec;
  --ink: #17181d;
  --muted: #555867;
  --accent: #5b3fd6;
  --accent-ink: #2a1d6e;
  --lav: #ebe5fb;
  --lav-2: #d8cdf8;
  --line: #17181d1a;
  --tint: 140, 116, 236;
  --serif-hy: "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --hdr: 64px;
  --shadow: 0 40px 80px -44px #1b1d2340, 0 2px 8px #1b1d230b;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline-color: var(--accent); }
.pf-tint {
  background:
    radial-gradient(70% 55% at 85% 0%, rgba(var(--tint), .13), transparent 70%),
    radial-gradient(60% 50% at 0% 70%, rgba(var(--tint), .09), transparent 70%);
}

/* ---------- Phase visibility (data-phase is set in <head>) ---------- */
html:not([data-phase="presale"]) [data-show="presale"],
html:not([data-phase="regular"]) [data-show="regular"],
html:not([data-phase="started"]) [data-show="started"],
html[data-phase="started"] [data-show="open"],
html[data-phase="presale"] [data-show="after-presale"] { display: none !important; }

/* ---------- Header ---------- */
.ac-brand-tag {
  margin-left: 12px; padding: 4px 9px; border-radius: 99px;
  background: var(--lav); color: var(--accent-ink);
  font: 650 12.5px/1 var(--sans); letter-spacing: .01em;
}
.ac-nav-link { font-size: 14.5px; }
.ac-nav-cta { background: var(--ink); color: #fff; box-shadow: none; }
.ac-nav-cta:hover { background: var(--accent); }
.ac-header::before { background: linear-gradient(var(--bg) 62%, #f4f1ec00); }
.is-scrolled .ac-header::before { opacity: 1; }
@media (max-width: 959px) { .ac-nav-link { display: none; } }

/* ---------- Hero ---------- */
/* The hero is the portfolio's .pf-hero (fixed, fades and blurs on scroll);
   academy.js scales the longer content down when it would not fit. */
.ac-hero-inner { position: relative; z-index: 2; transform-origin: 50% 50%; }
.ac-eyebrow {
  margin-bottom: clamp(10px, 1.6vh, 16px);
  font-size: clamp(12.5px, 1vw, 14.5px); letter-spacing: .16em;
  background: linear-gradient(90deg, #6a3df0, #4f35c4 60%, #4154e8);
  -webkit-background-clip: text; background-clip: text;
}
html .ac-hero .ac-h1 {
  font-size: min(7.2vw, 10.4vh, 112px);
  letter-spacing: -.035em; line-height: 1.02;
}
.ac-h1 .serif {
  font-family: var(--serif-hy); font-weight: 500; font-size: 1em;
  letter-spacing: -.03em; color: var(--accent);
}
.ac-sub {
  max-width: 24em; margin: clamp(14px, 2.4vh, 26px) auto 0;
  font-size: clamp(21px, 2.15vw, 31px); font-weight: 600; line-height: 1.22; letter-spacing: -.02em;
  text-wrap: balance;
}
.ac-lede {
  max-width: 38em; margin: clamp(10px, 1.4vh, 14px) auto 0;
  font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.55; color: var(--muted);
  text-wrap: pretty;
}
.ac-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: clamp(14px, 2.2vh, 22px) 0 0; padding: 0; list-style: none;
}
.ac-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 99px;
  background: #fff; box-shadow: 0 1px 3px #1b1d2314;
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
}
.ac-chip--date { background: var(--lav); color: var(--accent-ink); box-shadow: none; }
.ac-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 26px; margin-top: clamp(16px, 2.6vh, 26px);
}
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  font: 650 17px/1.2 var(--sans);
  box-shadow: 0 14px 30px -16px #17181d99;
  transition: background .2s, transform .25s var(--ease), opacity .2s;
}
.ac-btn svg { transition: transform .25s var(--ease); flex: none; }
.ac-btn:hover { background: var(--accent); transform: translateY(-1px); }
.ac-btn:hover svg { transform: translateX(3px); }
.ac-btn--block { width: 100%; }
.ac-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 16px; color: var(--accent-ink);
  text-decoration: underline; text-decoration-color: #2a1d6e55; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.ac-link:hover { text-decoration-color: currentColor; }
.ac-closed {
  margin: 0; padding: 12px 18px; border-radius: 14px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 15.5px;
  box-shadow: 0 1px 3px #1b1d2314;
}
.ac-fine { margin-top: clamp(12px, 2vh, 20px); display: grid; gap: 4px; justify-items: center; }
.ac-fine p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.ac-fine-price { font-weight: 650; color: var(--accent-ink); }
.ac-fine-note { color: var(--muted); font-weight: 500; }
.ac-fine-note svg { color: var(--accent); vertical-align: -3px; margin-right: 6px; }

/* Hero load sequence (portfolio.css handles the eyebrow and title words). */
.ac-sub, .ac-lede, .ac-meta, .ac-actions, .ac-fine {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ac-sub { transition-delay: .55s; }
.ac-lede { transition-delay: .65s; }
.ac-meta { transition-delay: .72s; }
.ac-actions { transition-delay: .8s; }
.ac-fine { transition-delay: .88s; }
.is-loading .ac-sub, .is-loading .ac-lede, .is-loading .ac-meta,
.is-loading .ac-actions, .is-loading .ac-fine { opacity: 0; transform: translateY(12px); }



/* ---------- Sections ---------- */
main { position: relative; z-index: 2; }
.ac-section { position: relative; padding: clamp(72px, 11vh, 132px) var(--gutter); }
.ac-wrap { max-width: 1120px; margin: 0 auto; }
.ac-h2 {
  margin: 0; max-width: 16em;
  font-size: clamp(34px, 4.8vw, 66px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.ac-h2 .serif { font-family: var(--serif-hy); font-weight: 500; color: var(--accent); letter-spacing: -.03em; }
.ac-h2--wide { max-width: 20em; font-size: clamp(30px, 4vw, 54px); }
.ac-h2--center { margin-left: auto; margin-right: auto; text-align: center; }
.ac-intro {
  max-width: 34em; margin: 18px 0 0;
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty;
}

/* ---------- Project examples: portfolio cards (3D tilt in academy.js) ---------- */
.ac-stack {
  list-style: none; margin: clamp(36px, 6vh, 64px) auto 0; padding: 0;
  width: min(100%, 1080px);
  display: flex; flex-direction: column; gap: clamp(24px, 6vh, 80px);
}
.ac-item { scroll-margin-top: 12vh; }
.ac-item .pf-body { justify-content: center; padding-right: clamp(8px, 2vw, 28px); }
.ac-item .pf-title { font-family: var(--serif-hy); font-weight: 500; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.12; letter-spacing: -.02em; }
.ac-item .pf-desc { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.ac-item .pf-tags { margin-top: 22px; }
.ac-item .pf-tags li { font-size: 14px; padding: 7px 13px 7px 10px; }

/* Illustrative website mockups: built with HTML/CSS, sized in cqw so they
   scale from the large cards down to the hero fan. */
.ac-shot { aspect-ratio: 1; }
.ac-sample {
  position: absolute; z-index: 3; top: 5cqw; left: 6cqw;
  padding: 1.3cqw 2.8cqw; border-radius: 99px;
  background: #fff; color: var(--ink-accent);
  font: 700 max(3.1cqw, 9px)/1.15 var(--sans); letter-spacing: .01em;
  box-shadow: 0 1cqw 3cqw -1cqw #00000040;
}
.ac-shot .dev-browser { top: 16cqw; left: 7cqw; width: 100cqw; transform: rotate(-2.5deg); }
.ac-shot .dev-browser-bar span { font-family: var(--sans); }
.mk {
  --mk-bg: #fbf7f1; --mk-ink: #2b1d12; --mk-muted: #7b6a5c; --mk-a: #c2662d; --mk-card: #fff;
  background: var(--mk-bg); color: var(--mk-ink);
  padding: 3cqw 4.2cqw 8cqw; text-align: left;
  font-family: var(--sans); font-size: 2.2cqw; line-height: 1.3;
}
.mk--studio { --mk-bg: #f3f1ea; --mk-ink: #23261c; --mk-muted: #6e7262; --mk-a: #5c6a42; }
.mk--idea { --mk-bg: #eef4ec; --mk-ink: #142a1d; --mk-muted: #5c7364; --mk-a: #2f7a4b; }
.mk--cafe { --mk-bg: #f7efe8; --mk-ink: #2e1a14; --mk-muted: #806458; --mk-a: #8a3b2a; }
.mk--yoga { --mk-bg: #f1eef8; --mk-ink: #241c3d; --mk-muted: #6d6585; --mk-a: #7a5bd0; }
.mk p { margin: 0; }
.mk-nav { display: flex; align-items: center; gap: 2.4cqw; font-size: 1.9cqw; color: var(--mk-muted); }
.mk-nav b { margin-right: auto; color: var(--mk-ink); font-size: 2.8cqw; font-weight: 800; letter-spacing: -.02em; }
.mk-nav em, .mk-btn, .mk-signup em {
  font-style: normal; font-weight: 700; color: #fff; background: var(--mk-a);
  border-radius: 99px; white-space: nowrap;
}
.mk-nav em { padding: .9cqw 2.2cqw; }
.mk-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.4cqw; align-items: center; margin-top: 4.4cqw; }
.mk-hero strong, .mk-center strong {
  display: block; font-family: var(--serif-hy); font-weight: 500;
  font-size: 4.6cqw; line-height: 1.08; letter-spacing: -.02em;
}
.mk-hero p, .mk-center p { margin: 1.6cqw 0 2.6cqw; font-size: 2cqw; color: var(--mk-muted); }
.mk-btn { display: inline-block; padding: 1.3cqw 2.6cqw; font-size: 1.9cqw; background: var(--mk-ink); }
.mk-art { position: relative; aspect-ratio: 1; border-radius: 3cqw; overflow: hidden; }
.mk-art--loaf {
  background:
    radial-gradient(ellipse 40% 25% at 50% 60%, #cf8541 96%, transparent 100%),
    radial-gradient(ellipse 44% 10% at 50% 82%, #00000018 90%, transparent 100%),
    radial-gradient(circle at 30% 25%, #fdeedd, #f0c79a);
}
.mk-art--loaf::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: 48%; height: 20%; border-radius: 50%;
  background: repeating-linear-gradient(115deg, transparent 0 3.2cqw, #f3cf9c 3.2cqw 3.9cqw);
  opacity: .9;
}
.mk-kicker { margin-top: 5cqw !important; font-size: 1.8cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-muted); }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 2cqw; }
.mk-prod { padding: 1.6cqw; border-radius: 2.4cqw; background: var(--mk-card); box-shadow: 0 .4cqw 1.4cqw #0000000f; }
.mk-prod i { display: block; aspect-ratio: 4 / 3; border-radius: 1.6cqw; }
.mk-prod b { display: block; margin-top: 1.4cqw; font-size: 2.1cqw; }
.mk-prod span { font-size: 1.7cqw; color: var(--mk-muted); }
.mk-ph--1 { background: radial-gradient(ellipse 44% 28% at 50% 55%, #ecd0a1 96%, transparent 100%), #fbf0e1; }
.mk-ph--2 { background: radial-gradient(ellipse 38% 26% at 50% 55%, #c77a36 96%, transparent 100%), #f5e6d6; }
.mk-ph--3 { background: radial-gradient(circle at 50% 55%, #e2ad66 0 26%, #b8783a 27% 30%, transparent 31%), #f3e3cf; }
.mk-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.4cqw; }
.mk-list li { display: flex; gap: 1.6cqw; align-items: baseline; padding: 1.8cqw 2cqw; border-radius: 2cqw; background: var(--mk-card); font-weight: 650; font-size: 2cqw; }
.mk-list span { color: var(--mk-a); font-size: 1.7cqw; font-weight: 800; }
.mk-works { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2cqw; margin-top: 2cqw; }
.mk-room { display: block; aspect-ratio: 1; border-radius: 2.4cqw; }
.mk-room--1 { background: radial-gradient(ellipse 30% 45% at 50% 100%, #e9e2d0 96%, transparent 100%), linear-gradient(#cdd3bd 0 62%, #b49c7b 62%); }
.mk-room--2 { background: radial-gradient(circle at 50% 40%, #f6efe0 0 18%, transparent 19%), linear-gradient(#e6d5bf 0 70%, #8d9a74 70%); }
.mk-room--3 { background: linear-gradient(90deg, transparent 0 60%, #7c8a62 60% 64%, transparent 64%), linear-gradient(#d9ddd0 0 66%, #c6a982 66%); }
.mk-center { margin: 5cqw auto 0; max-width: 72cqw; text-align: center; }
.mk-center strong { font-size: 5.2cqw; }
.mk-pill { display: inline-block; margin-bottom: 1.8cqw; padding: .7cqw 2cqw; border-radius: 99px; background: #d7eadb; color: var(--mk-a); font-weight: 700; font-size: 1.8cqw; }
.mk-signup { display: flex; align-items: center; gap: 1.4cqw; max-width: 60cqw; margin: 0 auto; padding: 1cqw 1cqw 1cqw 2.6cqw; border-radius: 99px; background: var(--mk-card); box-shadow: 0 .4cqw 1.6cqw #00000012; }
.mk-signup span { flex: 1; color: #9aa79e; font-size: 1.9cqw; }
.mk-signup em { padding: 1.3cqw 2.4cqw; font-size: 1.9cqw; }
.mk-feats { display: flex; justify-content: center; gap: 3cqw; margin-top: 4.4cqw; font-size: 1.9cqw; font-weight: 650; }
.mk-feats span { display: inline-flex; align-items: center; gap: 1cqw; }
.mk-feats i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--mk-a); opacity: .85; }
.mk-menu { margin: 2.2cqw 0 0; padding: 0; list-style: none; display: grid; gap: 1.4cqw; }
.mk-menu li { display: flex; align-items: center; gap: 2cqw; padding: 1.6cqw; border-radius: 2cqw; background: var(--mk-card); font-weight: 650; font-size: 2.1cqw; }
.mk-menu i { width: 7cqw; height: 7cqw; flex: none; border-radius: 1.6cqw; background: radial-gradient(circle at 50% 50%, var(--mk-a) 0 28%, #e9d6c6 29%); }

/* ---------- Topics: course-content list ---------- */
.ac-course { margin-top: clamp(28px, 4vh, 44px); }
.ac-course-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  margin-bottom: 14px;
}
.ac-course-meta p { margin: 0; font-size: 16px; color: var(--muted); }
.ac-course-toggle {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 700 16px/1.3 var(--sans); color: var(--accent);
}
.ac-course-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.ac-course-list {
  overflow: hidden; border: 1px solid #d9d6e2; border-radius: 18px;
  background: #fff; box-shadow: 0 30px 60px -44px #1b1d2333;
}
.ac-course-item + .ac-course-item, .ac-course-ghost { border-top: 1px solid #d9d6e2; }
.ac-course-item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  background: #f6f5f9; transition: background .2s;
}
.ac-course-item summary::-webkit-details-marker { display: none; }
.ac-course-item summary:hover { background: #f0eef6; }
.ac-course-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.ac-course-item[open] summary { border-bottom: 1px solid #d9d6e2; }
.ac-course-chev { flex: none; color: var(--ink); transition: transform .25s var(--ease); }
.ac-course-item[open] .ac-course-chev { transform: rotate(180deg); }
.ac-course-item h3 {
  margin: 0; font-size: clamp(17px, 1.55vw, 20px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  text-wrap: balance;
}
.ac-course-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.ac-course-body {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 24px 24px;
}
.ac-course-doc { margin-top: 3px; color: var(--muted); }
.ac-course-body p { margin: 0; max-width: 44em; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ac-course-ghost {
  -webkit-mask-image: linear-gradient(#000 10%, transparent 95%); mask-image: linear-gradient(#000 10%, transparent 95%);
}
.ac-course-ghost-row {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: #f6f5f9; filter: blur(3.5px);
}
.ac-course-ghost-row + .ac-course-ghost-row { border-top: 1px solid #d9d6e2; }
.ac-course-ghost-row .ac-course-chev { color: #9a97a8; }
.ac-course-ghost-row b { display: block; height: 14px; width: 54%; border-radius: 99px; background: #cfccd9; }
.ac-course-ghost-row + .ac-course-ghost-row b { width: 38%; }
.ac-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ac-next {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 18px 0 0; padding: 20px 22px; border-radius: 20px;
  background: var(--lav); color: var(--accent-ink);
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 650; line-height: 1.4;
}
.ac-next svg { flex: none; margin-top: 3px; }

/* ---------- Format ---------- */
.ac-format {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px);
  margin: clamp(36px, 6vh, 64px) 0 0; padding: 0; list-style: none;
}
.ac-format li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px;
  padding: clamp(26px, 3.4vw, 40px) 0; border-top: 1px solid var(--line);
}
.ac-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--accent); box-shadow: 0 1px 3px #1b1d2314, inset 0 0 0 1px var(--lav-2);
}
.ac-format h3 { margin: 4px 0 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.ac-format p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Pricing ---------- */
.ac-price {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin: clamp(36px, 6vh, 60px) auto 0; max-width: 1040px;
  padding: 12px; border-radius: 40px; background: #fff; box-shadow: var(--shadow);
}
.ac-price-main {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 30px; background: var(--lav); color: var(--accent-ink);
}
.ac-price-main::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#5b3fd62e 28%, transparent 32%);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(70% 70% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 100% 0%, #000, transparent 75%);
}
.ac-price-main p { margin: 0; }
.ac-price-label { font-size: 16px; font-weight: 650; line-height: 1.4; max-width: 22em; }
.ac-price-value {
  margin-top: 12px !important;
  font-size: clamp(54px, 6.6vw, 92px); font-weight: 650; line-height: 1; letter-spacing: -.045em;
  color: var(--ink); white-space: nowrap;
}
.ac-price-cur { font-size: .42em; letter-spacing: -.02em; font-weight: 600; }
.ac-price-deadline { margin-top: 16px !important; font-size: 17px; font-weight: 650; }
.ac-price-future { margin-top: 4px !important; font-size: 16px; font-weight: 500; color: #4a3f80; }
.ac-price-save {
  display: inline-block; margin-top: 16px !important;
  padding: 7px 14px; border-radius: 99px;
  background: #fff; color: var(--accent); font-size: 15px; font-weight: 700;
}
.ac-price-start {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px !important; padding-top: 20px; border-top: 1px solid #2a1d6e1f;
  font-size: 16px; font-weight: 650;
}
.ac-price-side { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(24px, 4vw, 48px); }
.ac-price-h { margin: 0; font-size: 18px; font-weight: 650; }
.ac-checks { margin: -6px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ac-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; }
.ac-checks li::before {
  content: ""; width: 22px; height: 22px; flex: none; margin-top: 0; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- FAQ ---------- */
.ac-faq { max-width: 880px; }
.ac-faq-list { margin-top: clamp(28px, 5vh, 48px); border-bottom: 1px solid var(--line); }
.ac-faq-item { border-top: 1px solid var(--line); }
.ac-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 650; line-height: 1.35; letter-spacing: -.01em;
  border-radius: 12px;
}
.ac-faq-item summary::-webkit-details-marker { display: none; }
.ac-faq-icon {
  position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px #1b1d2314;
}
.ac-faq-icon::before, .ac-faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease);
}
.ac-faq-icon::after { transform: rotate(90deg); }
.ac-faq-item[open] .ac-faq-icon { background: var(--ink); }
.ac-faq-item[open] .ac-faq-icon::before, .ac-faq-item[open] .ac-faq-icon::after { background: #fff; transform: rotate(180deg); }
.ac-faq-item p { margin: -6px 52px 26px 4px; max-width: 42em; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- Final CTA ---------- */
.ac-final {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px);
  border-radius: 40px; background: #fff; box-shadow: var(--shadow); text-align: center;
}
.ac-final .ac-h2 { max-width: 13em; }
.ac-final-text { margin: 0; max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.ac-final .ac-btn { margin-top: 8px; }
.ac-shape { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: var(--lav-2); }
.ac-shape--c { width: 340px; aspect-ratio: 1; left: -120px; bottom: -160px; opacity: .55; }
.ac-shape--d { width: 260px; aspect-ratio: 1; right: -90px; top: -110px; opacity: .4; background: var(--lav); }
.ac-final::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#5b3fd624 28%, transparent 32%); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(60% 80% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(60% 80% at 100% 100%, #000, transparent 70%);
}

/* ---------- Footer ---------- */
.ac-end { position: relative; z-index: 2; padding: 8px var(--gutter) 40px; }
.ac-end .pf-footer { margin: 0 auto; }

/* ---------- Floating CTA ---------- */
.ac-float {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 45;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 18px; border-radius: 99px;
  background: var(--ink); color: #fff;
  box-shadow: 0 16px 36px -14px #17181d80;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.ac-float.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ac-float-text { display: grid; line-height: 1.25; }
.ac-float strong { font-size: 15px; font-weight: 650; }
.ac-float small { font-size: 13px; color: #d9d3f5; }
.ac-float-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
.ac-float:hover .ac-float-icon { background: #7457f0; }

/* ---------- Telegram registration note ---------- */
.ac-tg-note { margin: -8px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
.ac-final .ac-tg-note { margin-top: -6px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .ac-item .pf-card { grid-template-columns: 1fr; }
  .ac-item .pf-shot { aspect-ratio: 4 / 3; }
  .ac-shot .dev-browser { top: 13cqw; }
  .ac-item .pf-body { padding: 14px 10px 10px; }
  .ac-price { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --hdr: 56px; }
  .ac-brand-tag { margin-left: 8px; padding: 3px 7px; font-size: 11px; }
  .ac-nav-cta { padding: 8px 12px; font-size: 13px; }
  html .ac-hero .ac-h1 { font-size: min(9.9vw, 8.4vh); }
  .ac-sub { font-size: 21px; }
  .ac-actions { flex-direction: column; gap: 14px; }
  .ac-btn { width: 100%; max-width: 360px; }
  .ac-fine { justify-items: center; }
  .ac-item .pf-card { padding: 10px; border-radius: 26px; gap: 4px; }
  .ac-item .pf-shot { border-radius: 18px; }
  .ac-item .pf-desc { font-size: 16px; }
  .ac-course-item summary, .ac-course-ghost-row { padding: 16px 16px; gap: 12px; }
  .ac-course-body { padding: 16px 16px 20px; gap: 12px; }
  .ac-course-body p { font-size: 16px; }
  .ac-format { grid-template-columns: 1fr; }
  .ac-format li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .ac-icon { width: 44px; height: 44px; }
  .ac-price { border-radius: 30px; padding: 8px; }
  .ac-price-main { border-radius: 24px; }
  .ac-faq-item p { margin-right: 4px; }
  .ac-final { border-radius: 30px; }
  .ac-end { padding-bottom: 104px; }
  .ac-float { left: var(--gutter); justify-content: space-between; padding: 8px 8px 8px 20px; }
  .ac-float strong { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .brand { font-size: 16px; }
  .ac-brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-sub, .ac-lede, .ac-meta, .ac-actions, .ac-fine, .ac-float, .ac-btn, .ac-btn svg, .ac-course-chev, .ac-course-item summary, .ac-faq-icon::before, .ac-faq-icon::after { transition: none !important; }
}
.ac-nw { white-space: nowrap; }
