/* BotsBox English layer. Visual language mirrors the Russian site (home-platform.css, service-pro.css, analizy-footer.css):
   white translucent header, photo hero with soft fade, large rounded cards, blue accent word in headings, light footer. Light theme only, like the Russian site. */
@font-face { font-family: Gilroy; font-weight: 600; font-display: swap; src: url('/en-assets/fonts/Gilroy-SemiBold.woff') format('woff'); }
@font-face { font-family: Gilroy; font-weight: 700; font-display: swap; src: url('/en-assets/fonts/Gilroy-Bold.woff') format('woff'); }
@font-face { font-family: Gilroy; font-weight: 800; font-display: swap; src: url('/en-assets/fonts/Gilroy-ExtraBold.woff') format('woff'); }

:root {
  --bg: #f8fbff; --tint: #f1f6ff; --surface: #ffffff; --ink: #071537; --muted: #5f6f9f; --soft: #7180ac; --line: #e1eafb; --line-2: #d9e5fb;
  --brand: #0874f9; --brand-d: #0768e9; --brand-text: #0560d4; --brand-soft: #eaf2ff; --accent: #5b3fd0; --warn-bg: #fff6e0; --warn-ink: #6a4a00;
  --chart-line: #b9c6e9; --chart-fill: #f5f7ff; --chart-ring: #879ed8; --chart-centre: #e1e8ff;
  --font: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --display: Gilroy, Inter, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1240px; --read: 760px; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid rgba(8, 116, 249, .4); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.read { max-width: var(--read); }
h1, h2, h3, p, ul, ol { margin-top: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #2a8aff, #0768e9); box-shadow: 0 10px 22px -8px rgba(13, 123, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.logo__name { font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.logo__name b { font-weight: 700; color: var(--ink); }
.logo__name em { font-style: normal; font-weight: 600; color: var(--brand); }
.logo__tag { display: none; padding-left: 14px; margin-left: 3px; border-left: 1px solid var(--line-2); color: var(--soft); font: 400 12px/1.25 var(--font); max-width: 120px; }
@media (min-width: 1100px) { .logo__tag { display: block; } }
.nav { display: none; gap: 2px; margin-right: auto; }
.nav a { color: #1a2850; text-decoration: none; padding: 9px 13px; border-radius: 12px; font: 500 15px/1 var(--font); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: 700 12px/1 var(--font); letter-spacing: .04em; color: #1a2850; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid #7180ac; border-bottom: 1.5px solid #7180ac; transform: rotate(45deg) translateY(-2px); }
.lang div { position: absolute; right: 0; top: 50px; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -22px rgba(42, 79, 142, .5); }
.lang a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font: 500 15px/1.2 var(--font); }
.lang a:hover { background: var(--brand-soft); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; position: relative; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 24px 50px -24px rgba(42, 79, 142, .55); }
.menu nav a { display: block; padding: 13px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font: 600 16px/1.2 var(--font); }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
@media (min-width: 992px) { .nav { display: flex; } .menu { display: none; } }
@media (max-width: 991px) { .header-actions .btn { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 16px; font: 600 16px/1 var(--font); letter-spacing: -.02em; cursor: pointer; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0d7bff, #0768e9); box-shadow: 0 18px 34px -14px rgba(8, 116, 249, .65), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 24px 40px -14px rgba(8, 116, 249, .75), inset 0 1px 0 rgba(255, 255, 255, .3); text-decoration: none; }
.btn svg { transition: transform .25s cubic-bezier(.34, 1.4, .64, 1); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { color: #0b4fd1; background: rgba(255, 255, 255, .82); border-color: var(--line-2); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { color: var(--brand); background: #fff; border-color: #b9d3fb; box-shadow: none; }
.btn--sm { height: 44px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.btn--soft { color: var(--brand-text); background: var(--brand-soft); box-shadow: none; }
.btn--soft:hover { color: var(--brand-text); background: #dcebff; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--soft); font: 500 15px/1 var(--font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- typography ---------- */
h1 { font: 700 clamp(34px, 4.2vw, 62px)/1.03 var(--display); letter-spacing: -.045em; color: var(--ink); margin-bottom: 0; }
h1 em, h2 em { color: var(--brand); font-style: normal; }
.hero h1 em { display: block; }
h2 { font: 700 clamp(28px, 3vw, 44px)/1.06 var(--display); letter-spacing: -.04em; margin: 2.1em 0 .55em; }
h3 { font: 700 20px/1.25 var(--font); letter-spacing: -.03em; margin: 1.6em 0 .4em; }
p { margin-bottom: 1em; }
.lead { margin-top: 20px; max-width: 560px; color: var(--soft); font: 500 clamp(17px, 1.5vw, 20px)/1.45 var(--font); letter-spacing: -.02em; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand); font: 600 15px/1.25 var(--font); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.crumbs { position: relative; z-index: 2; font-size: 14px; color: var(--soft); padding: 22px 0 0; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; color: #b4c4e6; }
main { padding-bottom: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px 0 56px; background: var(--bg); }
.hero--home { --hh: clamp(560px, 44vw, 700px); min-height: var(--hh); background:
  linear-gradient(to bottom, rgba(248, 251, 255, 0) 70%, rgba(248, 251, 255, .6) 88%, #f8fbff 100%) top / 100% 100% no-repeat,
  linear-gradient(to right, #f8fbff 0, rgba(248, 251, 255, 0) 160px) right top / calc(var(--hh) * 2) 100% no-repeat,
  url('/en-assets/img/hero-home.webp') right top / auto 100% no-repeat, #f8fbff; }
.crumbs + .hero--page { margin-top: -50px; padding-top: 104px; }
.hero--page { min-height: clamp(340px, 30vw, 440px); background:
  linear-gradient(to bottom, rgba(248, 251, 255, 0) 72%, #f8fbff 100%) top / 100% 100% no-repeat,
  linear-gradient(to right, #f8fbff 0, rgba(248, 251, 255, 0) 160px) right top / calc(clamp(340px, 30vw, 440px) * 2) 100% no-repeat,
  url('/en-assets/img/hero-tools.webp') right top / auto 100% no-repeat, #f8fbff; }
.hero__text { width: min(700px, 100%); }
.hero .eyebrow { margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 4px; padding: 2px 30px; }
.facts li:first-child { padding-left: 0; }
.facts li + li { border-left: 1px solid rgba(80, 109, 163, .22); }
.facts strong { font: 700 16px/1.25 var(--font); letter-spacing: -.025em; }
.facts span { color: var(--soft); font-size: 14px; line-height: 1.3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- sections ---------- */
.section { padding: 84px 0 12px; scroll-margin-top: 80px; }
.section--tint { background: var(--tint); padding-bottom: 84px; margin-top: 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 54px; margin: 0 0 34px; }
.head h2 { margin: 0; max-width: 760px; font-size: clamp(34px, 3.2vw, 56px); line-height: .98; letter-spacing: -.05em; }
.head p { flex: 0 1 460px; margin: 0 0 4px; color: var(--soft); font: 400 18px/1.4 var(--font); letter-spacing: -.02em; }
.head .eyebrow { display: block; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 236px; padding: 24px 26px 22px; border: 1px solid #e5edfb; border-radius: 26px; color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 18px 40px -34px rgba(42, 79, 142, .45); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .25s ease; }
a.svc:hover { color: var(--ink); border-color: #bcd6fb; transform: translateY(-5px); box-shadow: 0 30px 50px -28px rgba(8, 80, 216, .42); text-decoration: none; }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc__tag { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font: 600 13px/1 var(--font); }
.svc__tag--soon { background: #f0f3fa; color: var(--soft); }
.svc__num { color: #b4c4e6; font: 700 15px/1 var(--font); letter-spacing: .02em; }
.svc__name { margin-top: 4px; font: 700 21px/1.2 var(--font); letter-spacing: -.04em; color: var(--ink); }
.svc__text { flex: 1 1 auto; color: var(--soft); font-size: 15px; line-height: 1.5; letter-spacing: -.01em; margin: 0; }
.svc__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 16px; border-top: 1px solid #edf2fb; color: var(--brand-text); font: 600 15px/1 var(--font); }
.svc__foot svg { box-sizing: content-box; width: 16px; height: 16px; padding: 9px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), background .2s, color .2s; }
a.svc:hover .svc__foot svg { transform: translateX(4px); color: #fff; background: var(--brand); }
.svc--muted { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps3 li { padding: 30px 30px 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.steps3 .n { display: block; margin-bottom: 22px; color: var(--brand); font: 800 15px/1 var(--font); letter-spacing: .06em; }
.steps3 .n::after { content: ''; display: block; width: 36px; height: 2px; margin-top: 14px; border-radius: 2px; background: var(--brand); }
.steps3 h3 { margin: 0; }
.steps3 p { margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.5; }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat { padding: 4px 32px; }
.feat:first-child { padding-left: 0; }
.feat + .feat { border-left: 1px solid rgba(80, 109, 163, .2); }
.feat h3 { margin: 0; font-size: 19px; }
.feat p { margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.note-line { margin-top: 36px; max-width: 760px; padding-top: 22px; border-top: 1px solid var(--line); color: #7d89a8; font-size: 14px; line-height: 1.6; }

.cta { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 440px; margin: 72px 0 40px; padding: clamp(32px, 4.6vw, 80px) clamp(24px, 5.5vw, 96px); overflow: hidden; border: 1px solid #e5edfb; border-radius: 32px; background: #f8fbff url('/en-assets/img/cta-bg.webp') right center / cover no-repeat; box-shadow: 0 30px 60px -36px rgba(42, 79, 142, .35); }
.cta__copy { position: relative; z-index: 1; width: min(640px, 100%); }
.cta h2 { margin: 0; font-size: clamp(34px, 3.2vw, 56px); line-height: .98; letter-spacing: -.05em; }
.cta h2 em { display: block; }
.cta p { max-width: 460px; margin: 20px 0 28px; color: var(--soft); font-size: 18px; line-height: 1.4; }
.btn--lg { min-width: min(100%, 380px); height: 68px; justify-content: space-between; padding: 8px 30px 8px 34px; border-radius: 20px; font-size: 18px; }

/* ---------- tool ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 8px; }
@media (min-width: 1000px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 320px; } .aside { position: sticky; top: 92px; } }
.aside { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.aside h2 { margin: 0 0 12px; font: 700 20px/1.2 var(--font); letter-spacing: -.03em; }
.aside h2 em { color: var(--ink); }
.aside dl { margin: 0; }
.aside dt { margin: 14px 0 2px; font: 600 13px/1.2 var(--font); color: var(--brand-text); text-transform: uppercase; letter-spacing: .06em; }
.aside dd { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: 0 30px 60px -36px rgba(42, 79, 142, .35); margin: 0; }
.tool > h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.035em; }
.tool > h2 em { color: var(--ink); }
.fields { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: flex-end; }
fieldset.date { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.date legend { font: 600 15px/1.2 var(--font); padding: 0; margin-bottom: 8px; color: #1a2850; }
.date-row { display: flex; gap: 8px; }
select, input[type="number"], input[type="text"]:not(.hp), input[type="email"] { font: 500 16px/1.2 var(--font); background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; padding: 0 14px; height: 56px; min-width: 0; }
select:hover, input:hover { border-color: #b9d3fb; }
select:focus, input:focus { border-color: var(--brand); outline: 3px solid rgba(8, 116, 249, .18); outline-offset: 0; }
.date-row select[data-part="month"] { min-width: 150px; }
.date-row select[data-part="day"] { min-width: 86px; }
.date-row input[data-part="year"] { width: 108px; }
label.field { display: flex; flex-direction: column; gap: 8px; font: 600 15px/1.2 var(--font); color: #1a2850; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; margin-top: 6px; }
.error { color: #b3261e; font-weight: 600; margin: 14px 0 0; min-height: 1.4em; }
.tool .hint { margin: 10px 0 0; }

.result { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 26px; }
.result[hidden] { display: none; }
.result > h3:first-child { margin-top: 0; font-size: 24px; letter-spacing: -.035em; }
.big { font: 800 64px/1 var(--display); color: var(--brand); letter-spacing: -.04em; }
.stat { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.two { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.two > * { min-width: 0; }
@media (min-width: 760px) { .two:not(.result .two) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; } }
.chart { max-width: 420px; margin: 0 auto 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ln { stroke: var(--chart-line); stroke-width: 2; fill: none; }
.chart .pt { fill: var(--chart-fill); stroke: var(--chart-ring); stroke-width: 1.5; }
.chart .pt--c { fill: var(--chart-centre); }
.chart .num { fill: #273b76; font-weight: 700; font-size: 17px; text-anchor: middle; font-family: var(--font); }
.chart .cap { fill: var(--muted); font-size: 12px; text-anchor: middle; font-family: var(--font); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 22px; background: #fff; margin: 14px 0; }
.table-wrap table { margin: 0; min-width: 460px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid #edf2fb; vertical-align: top; }
th { font: 700 12px/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); background: #f6f9ff; }
tr:last-child td { border-bottom: 0; }
td.n { font-weight: 700; color: var(--brand-text); white-space: nowrap; }
main details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 20px; margin: 10px 0; }
main details summary { cursor: pointer; font: 600 17px/1.35 var(--font); letter-spacing: -.02em; padding: 18px 0; }
main details[open] summary { margin-bottom: 2px; }
main details p:last-child { margin-bottom: 18px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 18px; padding: 16px 20px; font-size: 15px; line-height: 1.55; margin: 22px 0; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- article body ---------- */
.body { padding-top: 8px; }
.body h2 { margin-top: 1.9em; }
.body .tool > h2, .body .aside h2 { margin-top: 0; }
.body .table-wrap { max-width: 980px; }
.body > .cards { margin-top: 28px; }
.steps { counter-reset: s; padding: 0; list-style: none; margin: 18px 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 16px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, #2a8aff, #5b3fd0); color: #fff; font: 700 16px/1 var(--font); display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(13, 123, 255, .8); }
.worked { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 18px; margin: 20px 0; }
.body ul { padding-left: 22px; }
.body li { margin-bottom: 6px; }
dt { margin-top: 14px; } dd { margin: 4px 0 0; color: var(--soft); }
.related { margin-top: 70px; }
.related h2 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 56px 0 28px; background: var(--bg) url('/en-assets/img/footer-bg.webp') right bottom / cover no-repeat; color: var(--soft); font-size: 15px; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1.5fr repeat(3, 1fr); }
.foot-brand .logo { margin-bottom: 16px; }
.tagline { color: var(--ink); font: 700 18px/1.3 var(--font); letter-spacing: -.03em; margin-bottom: 8px; }
.foot-brand p { max-width: 340px; margin-bottom: 18px; }
.site-footer h2 { font: 700 17px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 11px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer a.btn, .site-footer a.btn:hover { color: #fff; }
.foot-notice { display: flex; gap: 12px; align-items: flex-start; margin: 30px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .7); color: var(--soft); font-size: 14px; line-height: 1.5; }
.foot-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 13.5px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom a { color: #7d89a8; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0 48px; }
  .hero--home { min-height: 0; align-items: flex-start; padding: 40px 0 340px; background:
    linear-gradient(to bottom, #f8fbff 0, rgba(248, 251, 255, 0) 38%) bottom / 100% 360px no-repeat,
    url('/en-assets/img/hero-home.webp') 86% 100% / auto 360px no-repeat, #f8fbff; }
  .hero--home .hero__text { text-align: center; margin: 0 auto; }
  .hero--home .lead { margin-left: auto; margin-right: auto; }
  .hero--home .actions, .hero--home .facts { justify-content: center; }
  .facts li { padding: 2px 16px; text-align: center; }
  .facts li:first-child { padding-left: 16px; }
  .crumbs + .hero--page { margin-top: -44px; padding-top: 72px; }
  .hero--page { min-height: 0; padding: 32px 0 40px; background: linear-gradient(to bottom, #f8fbff 0, rgba(248, 251, 255, .78) 100%), url('/en-assets/img/hero-tools.webp') 80% 100% / auto 100% no-repeat, #f8fbff; }
  h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.06; letter-spacing: -.04em; }
  .section { padding: 54px 0 8px; }
  .section--tint { margin-top: 40px; padding-bottom: 54px; }
  .head { display: block; margin-bottom: 24px; }
  .head h2 { font-size: 31px; line-height: 1.04; }
  .head p { margin-top: 12px; font-size: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc { min-height: 0; padding: 20px 18px 18px; border-radius: 22px; }
  .steps3 { grid-template-columns: 1fr; gap: 12px; }
  .steps3 li { padding: 22px; border-radius: 22px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .feat { padding: 0 20px; }
  .feat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cta { margin: 48px 0 28px; min-height: 0; padding: 32px 22px; border-radius: 24px; background-position: 72% center; }
  .cta::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(248, 251, 255, .94), rgba(248, 251, 255, .84)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  body { font-size: 16.5px; }
  .cards { grid-template-columns: 1fr; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .facts { display: grid; gap: 14px; justify-items: center; }
  .facts li + li { border-left: 0; }
  .feats { grid-template-columns: 1fr; gap: 22px; }
  .feat, .feat:nth-child(odd) { padding: 0; border-left: 0; }
  .feat + .feat { padding-top: 22px; border-top: 1px solid rgba(80, 109, 163, .18); }
  .tool { padding: 20px 16px; border-radius: 22px; }
  .big { font-size: 52px; }
  .form-actions .btn { width: 100%; }
  .date-row { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn--lg { min-width: 100%; }
}
@media print {
  .site-header, .site-footer, .share, .tool form, .crumbs, .cta, .related { display: none !important; }
  body { background: #fff; color: #000; }
  .tool { border: 0; box-shadow: none; }
  .hero { background: none !important; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- account ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 40px -34px rgba(42, 79, 142, .45); }
.acc-head h2 { margin: 6px 0 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; word-break: break-all; }
.acc-head .hint { margin: 6px 0 0; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font: 600 13px/1 var(--font); }
#account-app .tool + .aside, #account-app .tool-layout { margin-top: 4px; }
#account-app .cards .svc { min-height: 0; }
#account-app .form-actions { margin-top: 12px; }
@media (max-width: 575px) { .acc-head { padding: 18px; } .acc-head .btn { width: 100%; } }
#account-app .svc__top { flex-wrap: wrap; }
#account-app .svc__num { white-space: nowrap; font-size: 13px; }

/* ---------- number chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 6px; }
.chip-link { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; color: var(--ink); font: 500 15px/1.2 var(--font); }
.chip-link b { color: var(--brand); font-weight: 800; }
.chip-link:hover { border-color: #bcd6fb; background: var(--brand-soft); }

/* ---------- table of contents and page meta ---------- */
.toc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; margin: 20px 0 8px; max-width: 760px; }
.toc strong { font: 700 15px/1.2 var(--font); letter-spacing: .02em; color: var(--ink); }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.meta { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.facts-table { max-width: 760px; }
.quick td:first-child { width: 34%; font-weight: 600; color: var(--ink); }
h2[id] { scroll-margin-top: 90px; }

/* Name numerology: letter value tables */
.lt-table { min-width: 0 !important; width: auto; }
.lt-table th { white-space: nowrap; text-align: left; font-size: 13px; color: var(--muted); padding: 8px 12px; }
.lt-table td { text-align: center; min-width: 34px; padding: 8px 6px; font-variant-numeric: tabular-nums; }
.lt-table td.v { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }

/* Figures (inline SVG diagrams) */
.figure { margin: 22px 0; }
.figure svg { display: block; width: 100%; max-width: 580px; height: auto; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 580px; }
.lc-cell { fill: #fff; stroke: var(--line-2); stroke-width: 1.2; }
.lc-cell.lc-v { fill: var(--brand-soft); stroke: #b9d3fb; }
.lc-cell.lc-b { fill: var(--brand); stroke: var(--brand); }
.lc-l { font: 700 18px var(--display); fill: var(--ink); }
.lc-n { font: 600 13px var(--font); fill: var(--brand-text); }
.lc-lw { fill: #fff; }
.lc-nw { fill: #dbe9ff; }
.lc-op { font: 700 30px var(--display); fill: var(--muted); }

/* Chinese zodiac */
.zbig { font-size: 40px; line-height: 1; background: var(--brand-soft); }
.stat .big.zbig { width: auto; min-width: 72px; padding: 0 14px; border-radius: 22px; }
.zcell { text-align: center; font-weight: 700; min-width: 34px; }
.z-strong { background: #e4f6ec; color: #11683a; }
.z-bad { background: #fdeaea; color: #a12323; }
.z-same { background: var(--brand-soft); color: var(--brand-text); }
.z-neutral { color: var(--soft); }
.zchart { min-width: 0 !important; }
.zchart th, .zchart td { padding: 8px 6px; text-align: center; font-size: 13px; }
.zchart tbody th { text-align: left; white-space: nowrap; padding-left: 12px; }
.zlegend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }
.zlegend b { display: inline-block; min-width: 26px; text-align: center; border-radius: 8px; padding: 1px 6px; margin-right: 6px; }

/* Zodiac wheel and answer box */
.zw-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.zw-node { fill: #fff; stroke: var(--line-2); stroke-width: 1.4; }
.zw-node.zw-sel { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2.6; }
.zw-e { font-size: 22px; }
.zw-trine { stroke: var(--brand); stroke-width: 2.2; opacity: .85; }
.zw-harmony { stroke: #1e9b5a; stroke-width: 2.6; }
.zw-clash { stroke: #d33; stroke-width: 2.2; stroke-dasharray: 7 5; }
.zw-harm { stroke: #e08a00; stroke-width: 2.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.figure svg.wheel, .figure svg[aria-label^="Chinese zodiac wheel"] { max-width: 360px; }
p.answer { background: var(--brand-soft); border: 1px solid #cfe3ff; border-radius: 16px; padding: 14px 18px; }
