/* DownloaderFor — public site. White, light and fast. Mobile first. */

:root {
  --bg: #ffffff;
  --soft: #f7f8fc;
  --soft-2: #f1f3fa;
  --ink: #0e1324;
  --ink-2: #2f3750;
  --muted: #667089;
  --line: #e7e9f2;
  --line-2: #d9dceb;
  --brand: #5b4bff;
  --brand-600: #4a37f5;
  --brand-700: #3b28d9;
  --brand-50: #f3f1ff;
  --brand-100: #e7e3ff;
  --accent: #ff3d71;
  --ok: #10a35d;
  --ok-50: #eafaf2;
  --warn: #d97706;
  --err: #e5484d;
  --err-50: #fff0f0;
  --c-youtube: #ff0033;
  --c-tiktok: #111111;
  --c-instagram: #e1306c;
  --c-facebook: #1877f2;
  --c-twitter: #111111;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .10);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .04), 0 24px 48px -12px rgba(40, 30, 120, .18);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.narrow-wide { max-width: 880px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Platform colors */
.c-youtube { color: var(--c-youtube); }
.c-tiktok { color: var(--c-tiktok); }
.c-instagram { color: var(--c-instagram); }
.c-facebook { color: var(--c-facebook); }
.c-twitter { color: var(--c-twitter); }
.c-link { color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s, color .15s; white-space: nowrap;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #7b4dff 100%); color: #fff; box-shadow: 0 6px 16px -6px rgba(91, 75, 255, .55); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-600) 0%, #6a3cf5 100%); }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 6px 16px -6px rgba(16, 163, 93, .5); }
.btn-ok:hover { background: #0c8a4e; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-50); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-xl { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none !important; }
.wordmark { font-size: 20px; letter-spacing: -.03em; }
.wordmark b { color: var(--brand); font-weight: 800; }
.mainnav { margin-left: auto; display: none; align-items: center; gap: 2px; }
.navlink { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.navlink:hover, .navlink.is-on { background: var(--soft-2); color: var(--ink); }
.navicon { display: inline-flex; }
.navmore { position: relative; }
.caret { font-size: 11px; opacity: .6; }
.navmenu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 250px; display: none; }
.navmore.is-open .navmenu { display: block; }
.navmenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.navmenu a:hover { background: var(--soft-2); color: var(--ink); }
.navtoggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
@media (min-width: 1000px) {
  .mainnav { display: flex; }
  .navtoggle { display: none; }
}
@media (max-width: 999px) {
  .mainnav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); max-height: calc(100vh - 66px); overflow-y: auto; }
  .mainnav.is-open .navlink { padding: 12px; font-size: 16px; }
  .mainnav.is-open .navmenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 8px; }
  .mainnav.is-open .navmore-btn { display: none; }
}

.notice { background: #fff7e6; border-bottom: 1px solid #fde3a7; color: #7a4a00; font-weight: 600; font-size: 14.5px; padding: 10px 0; text-align: center; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 36px; }
@media (min-width: 720px) { .hero { padding: 72px 0 56px; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-bg .b1 { width: 460px; height: 460px; background: #e9e5ff; top: -180px; left: -120px; }
.hero-bg .b2 { width: 420px; height: 420px; background: #ffe4ec; top: -140px; right: -140px; }
.hero-bg .b3 { width: 380px; height: 380px; background: #e2f4ff; bottom: -220px; left: 40%; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .55; }
.hero-in { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hero-badge svg { color: var(--accent); }
.hero-title { font-size: clamp(32px, 6.4vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 14px; }
.hero-title .hl { background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 680px; margin: 0 auto 26px; }
.hero-tool .hero-title { font-size: clamp(30px, 5.4vw, 50px); }
.hero-plat { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }
.blog-hero .crumbs, .post-head .crumbs { justify-content: flex-start; }

/* ---------------- Downloader ---------------- */
.dl { max-width: 760px; margin: 0 auto; text-align: left; }
.dl-form { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .dl-form { flex-direction: row; align-items: center; } }
.dl-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.dl-detect { position: absolute; left: 14px; display: inline-flex; width: 24px; height: 24px; }
.dl-detect > span { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.dl-detect > span.is-on { display: inline-flex; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dl-field input { width: 100%; border: 0; outline: 0; background: transparent; padding: 15px 96px 15px 48px; font-size: 16.5px; border-radius: 14px; min-width: 0; }
.dl-field input::placeholder { color: #9aa1b5; }
.dl-field:focus-within { box-shadow: inset 0 0 0 2px var(--brand-100); border-radius: 14px; }
.dl-paste, .dl-clear { position: absolute; right: 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--soft); color: var(--ink-2); border-radius: 10px; padding: 7px 11px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dl-paste:hover, .dl-clear:hover { border-color: var(--brand); color: var(--brand-600); }
.dl-clear { padding: 7px; }
.dl-go { flex-shrink: 0; }
.dl-hint { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.dl-hint svg { vertical-align: -2px; margin-right: 4px; }
.dl-hint a { color: var(--muted); text-decoration: underline; }
.dl-error { margin-top: 14px; background: var(--err-50); border: 1px solid #ffd2d3; color: #b42318; border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; }

.chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; text-decoration: none !important; box-shadow: var(--shadow-sm); }
.pchip span { color: var(--ink-2); }
.pchip:hover, .pchip.is-on { border-color: currentColor; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--ok); }

/* Result card */
.dl-result { margin-top: 18px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: rise .3s ease; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.rcard-top { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px; }
@media (min-width: 640px) { .rcard-top { grid-template-columns: 220px 1fr; padding: 18px; } }
.rthumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft-2); aspect-ratio: 16 / 9; }
.rthumb.is-tall { aspect-ratio: 9 / 12; max-height: 300px; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.rthumb .rdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.rmeta h3 { font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.rmeta .rby { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--soft-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-50); color: #067647; }
.badge-warn { background: #fff4e5; color: #b54708; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.qlist { border-top: 1px solid var(--line); }
.qrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.qrow:last-child { border-bottom: 0; }
@media (min-width: 640px) { .qrow { padding: 12px 18px; } }
.qico { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.qrow.is-audio .qico { background: #fff0f5; color: var(--accent); }
.qlabel { font-weight: 700; }
.qlabel small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.qtag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--brand-700); background: var(--brand-50); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.qact { display: flex; align-items: center; gap: 8px; }
.qprog { grid-column: 1 / -1; display: grid; gap: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .4s ease; }
.bar.is-indet > span { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.qstat { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rnote { padding: 12px 18px; background: var(--soft); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.rslot { padding: 14px 18px; border-top: 1px solid var(--line); }
.captcha-box { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; text-align: center; }

.dl-recent { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.dl-recent-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dl-recent-head h3 { font-size: 15px; margin: 0; }
.dl-recent-head span { font-size: 12.5px; color: var(--muted); }
.ritem { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ritem:first-child { border-top: 0; }
.ritem img, .ritem .ph { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--soft-2); flex-shrink: 0; }
.ritem-t { flex: 1; min-width: 0; }
.ritem-t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritem-t span { font-size: 12.5px; color: var(--muted); }
.ritem .btn { flex-shrink: 0; }

.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spin.dark { border-color: var(--line-2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--soft-2) 25%, #fff 37%, var(--soft-2) 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Thumbnails tool */
.thumb-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .thumb-grid { grid-template-columns: 1fr 1fr; } }
.thumb-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.thumb-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft-2); }
.thumb-item div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; }
.thumb-item b { font-size: 14px; }
.thumb-item span { color: var(--muted); font-size: 12.5px; display: block; }
.thumb-item.is-missing { opacity: .55; }

.subs-list { display: grid; gap: 8px; padding: 14px 18px; }
.subs-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0; }
.subs-items { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- Sections ---------------- */
.slot-wrap { margin-top: 18px; margin-bottom: 18px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; text-align: left; max-width: none; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow { display: inline-block; color: var(--brand-600); font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.step-n { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; }

.platform-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .platform-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
.pcard2 { --pc: var(--brand); display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
.pcard2::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc); opacity: .9; }
.pcard2:hover { border-color: color-mix(in srgb, var(--pc) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard2-ico { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc); margin-bottom: 6px; }
.pcard2-name { font-weight: 800; font-size: 18px; }
.pcard2-desc { color: var(--muted); font-size: 15px; }
.pcard2-go { display: inline-flex; align-items: center; gap: 6px; color: var(--pc); font-weight: 700; font-size: 14px; margin-top: 4px; }
.p-youtube { --pc: var(--c-youtube); }
.p-tiktok { --pc: #111; }
.p-instagram { --pc: var(--c-instagram); }
.p-facebook { --pc: var(--c-facebook); }
.p-twitter { --pc: #111; }
.p-tools { --pc: var(--brand); }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.tool-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tcard { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.tcard:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.tcard-ico { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft-2); }
.tcard-t { font-weight: 800; font-size: 15.5px; }
.tcard-d { grid-column: 2; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.tcard-go { grid-row: 1 / 3; grid-column: 3; color: var(--muted); }
.tcard:hover .tcard-go { color: var(--brand); }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; font-weight: 500; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a p { color: var(--ink-2); margin: 0 0 16px; }

.band { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: space-between; background: linear-gradient(120deg, var(--brand) 0%, #7b4dff 55%, var(--accent) 120%); color: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .band { flex-direction: row; align-items: center; padding: 40px 48px; } }
.band h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 4px; }
.band p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------------- Blog ---------------- */
.blog-hero { padding: 40px 0 8px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin-bottom: 8px; }
.blog-hero p { color: var(--muted); font-size: 17px; max-width: 680px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 24px; }
.cat-pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none !important; }
.cat-pill span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.cat-pill:hover, .cat-pill.is-on { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }

.post-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid-slot { grid-column: 1 / -1; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { display: block; aspect-ratio: 16 / 9; background: var(--soft-2); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), #fff0f5); }
.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-body h3 { font-size: 18px; margin: 0; }
.pcard-body h3 a { color: var(--ink); }
.pcard-body p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.pcard-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.tag { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); padding: 4px 9px; border-radius: 999px; text-decoration: none !important; }
.lead-post { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
@media (min-width: 860px) { .lead-post { grid-template-columns: 1.15fr 1fr; } }
.lead-img { display: block; aspect-ratio: 16 / 9; background: var(--soft-2); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
@media (min-width: 860px) { .lead-body { padding: 36px; } }
.lead-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.lead-body h2 a { color: var(--ink); }
.lead-body p { color: var(--muted); margin: 0; }
.lead-body .btn { align-self: flex-start; margin-top: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; color: var(--muted); font-weight: 600; }
.empty-state { text-align: center; padding: 60px 16px; max-width: 520px; margin: 0 auto; }
.empty-ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 20px; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.empty-state p { color: var(--muted); }

/* Article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.post-head { padding: 36px 0 20px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.post-head h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 12px; }
.post-lead { font-size: 19px; color: var(--ink-2); margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.post-meta b { color: var(--ink); }
.avatar { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.post-cover { margin: 8px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--soft-2); }
.post-cover img { width: 100%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 1080px) { .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.post-main { min-width: 0; max-width: 760px; }
.post-side { display: none; }
@media (min-width: 1080px) { .post-side { display: block; } .toc-inline { display: none; } }
.side-sticky { position: sticky; top: 90px; display: grid; gap: 16px; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.toc-inline { margin-bottom: 26px; }
.toc-inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 800; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-count { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.toc-side { padding: 16px; max-height: calc(100vh - 360px); overflow-y: auto; }
.toc-title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc-list { list-style: none; margin: 0; padding: 0 16px 14px; counter-reset: t; }
.toc-side .toc-list { padding: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 10px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; }
.toc-list li.lv3 a { padding-left: 24px; font-size: 13.5px; color: var(--muted); }
.toc-list a:hover { color: var(--brand-600); border-left-color: var(--brand-100); }
.toc-list a.is-active { color: var(--brand-700); border-left-color: var(--brand); font-weight: 700; background: var(--brand-50); }
.side-cta { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); text-align: center; }
.side-cta-ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: var(--soft-2); margin-bottom: 8px; }
.side-cta-t { font-weight: 800; margin: 0 0 4px; line-height: 1.3; }
.side-cta-d { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(23px, 3vw, 29px); font-weight: 800; color: var(--ink); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 1.6em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose img { border-radius: 14px; margin: 1.4em auto; border: 1px solid var(--line); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: -.6em; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 14px 14px 0; color: var(--ink); font-style: italic; }
.prose code { background: var(--soft-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: #0f1424; color: #e6e9f5; padding: 16px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--ink); font-weight: 800; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.table-wrap { overflow-x: auto; }
.prose .df-box { margin: 2em 0; }

.cta-box { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin: 2em 0; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-50) 0%, #fff4f8 100%); border: 1px solid var(--brand-100); }
@media (min-width: 640px) { .cta-box { grid-template-columns: auto 1fr auto; padding: 22px 24px; } }
.cta-ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.cta-txt p { margin: 0; }
.prose .cta-title { font-weight: 800; color: var(--ink); font-size: 18px; line-height: 1.3; margin: 0 0 2px; }
.prose .cta-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.cta-btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .cta-btn { grid-column: auto; } }
.prose .cta-btn { color: #fff; text-decoration: none; }

.end-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin: 40px 0 28px; padding: 28px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, var(--brand) 0%, #7b4dff 60%, var(--accent) 130%); }
@media (min-width: 720px) { .end-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.end-cta h2 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.end-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.end-cta .end-cta-k { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.share-row > span { font-weight: 700; color: var(--muted); font-size: 14px; margin-right: 6px; }
.share { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.share:hover { border-color: var(--brand); color: var(--brand-600); }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }
.author-box .author-name { font-weight: 800; color: var(--ink); margin-bottom: 4px; }

.cta-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .3s ease; }
.cta-bar-t { flex: 1; font-weight: 700; font-size: 14px; }
.cta-bar-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: inline-flex; }
@media (min-width: 1080px) { .cta-bar { display: none !important; } }

/* ---------------- Sponsored boxes ---------------- */
.df-box { position: relative; display: block; text-align: center; margin: 0 auto; max-width: 100%; }
.df-cap { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa1b5; margin-bottom: 4px; }
.df-media img { margin: 0 auto; border-radius: 12px; max-height: 320px; width: auto; }
.sticky-slot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 6px 40px 6px 8px; box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); }
.sticky-slot .df-media img { max-height: 90px; }
.sticky-close { position: absolute; right: 6px; top: 6px; border: 0; background: var(--soft-2); border-radius: 8px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 900px) { .sticky-slot { display: none; } }

/* ---------------- Forms ---------------- */
.form { display: grid; gap: 14px; margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; background: #fff; font-size: 15.5px; font-weight: 500; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.form .check input { width: auto; margin-top: 4px; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--soft); padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 320px; }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.footer ul a:hover { color: var(--brand-600); }
.footer-bottom { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (min-width: 860px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
body:has(.sticky-slot) .footer { padding-bottom: 120px; }
@media (min-width: 900px) { body:has(.sticky-slot) .footer { padding-bottom: 24px; } }

/* ---------------- Consent ---------------- */
.consent { position: fixed; z-index: 65; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); }
.consent p { margin: 0; font-size: 14px; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 20px; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: rise .25s ease; }
.toast.ok { background: #0b7a46; }
.toast.err { background: #b42318; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
