:root {
  --orange: #f04e23;
  --orange-dark: #d43d15;
  --orange-soft: #fff1ec;
  --ink: #1c1d1f;
  --text: #4b4f56;
  --mute: #7b8088;
  --line: #ececee;
  --bg: #ffffff;
  --panel: #fafafa;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: normal; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 700; margin: 0; }
h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Language blocks: English shows until the script picks the visitor's language */
[data-lang] { display: none; }
[data-lang='en'] { display: block; }
span[data-lang='en'] { display: inline; }
.js [data-lang] { display: none; }
.js [data-lang].on { display: block; }
.js span[data-lang].on { display: inline; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; flex: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--panel); text-decoration: none; color: var(--ink); }
.nav a[aria-current='page'] { color: var(--orange); background: var(--orange-soft); }
.lang { font: inherit; font-size: 14px; font-weight: 500; color: var(--text); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; margin-left: 6px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
         background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.35); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .lang { margin: 8px 0 0; padding: 12px 14px; font-size: 16px; border-radius: 12px; width: 100%; }
}

/* ---------- shared pieces ---------- */
.kicker { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 24px; font-size: 16px; font-weight: 600;
       border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--mute); text-decoration: none; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
section.block { padding: 56px 0 0; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head p { font-size: 17px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card p { font-size: 15px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.badge { display: inline-block; font-size: 14px; font-weight: 600; color: var(--orange); background: var(--orange-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }

/* ---------- home ---------- */
.home-hero { padding: 72px 0 24px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.home-hero h1 { font-size: clamp(34px, 6vw, 56px); }
.home-hero .lead { margin-top: 18px; max-width: 560px; }
.home-hero .actions { margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: var(--mute); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero-art { position: relative; aspect-ratio: 1; border-radius: 28px; background: linear-gradient(150deg, var(--orange-soft), #fff 70%); border: 1px solid var(--line); overflow: hidden; }
.hero-art .tile { position: absolute; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.35); display: grid; place-items: center; color: var(--orange); }
.hero-art .tile svg { width: 30px; height: 30px; }
.hero-art .t1 { width: 38%; height: 38%; left: 10%; top: 12%; }
.hero-art .t2 { width: 30%; height: 30%; right: 12%; top: 22%; background: var(--orange); color: #fff; border-color: var(--orange); }
.hero-art .t3 { width: 34%; height: 34%; left: 22%; bottom: 10%; }
.hero-art .t4 { width: 26%; height: 26%; right: 14%; bottom: 16%; }
.steps { counter-reset: s; }
.step { position: relative; padding: 64px 22px 22px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
                font-size: 15px; font-weight: 600; display: grid; place-items: center; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.platforms span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; }
.cta { margin-top: 56px; border-radius: 24px; background: var(--ink); color: #d6d7da; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: #44474d; }

/* ---------- support ---------- */
.page-hero { padding: 60px 0 30px; text-align: center; }
.page-hero .lead { max-width: 580px; margin: 14px auto 0; }
.contact { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: linear-gradient(180deg, var(--orange-soft), #fff 65%);
           display: grid; gap: 22px; }
.contact h2 { font-size: 22px; margin-bottom: 4px; }
.contact .email { display: block; font-size: 19px; font-weight: 600; color: var(--ink); margin: 2px 0 18px; }
.tips { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 15px; }
.tips strong { display: block; margin-bottom: 6px; }
.tips ul { margin: 0; }
.tips li:last-child { margin-bottom: 0; }
.faq-group { margin-top: 26px; }
.faq-group > h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--orange); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
details[open] summary::after { content: '–'; }
details .answer { padding: 0 20px 18px; font-size: 15px; }
details .answer p:last-child { margin-bottom: 0; }

/* ---------- policy ---------- */
.policy .updated { font-size: 14px; color: var(--mute); }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--panel); margin: 10px 0 8px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; }
.policy section { padding-top: 34px; scroll-margin-top: 84px; }
.policy h2 { display: flex; gap: 10px; align-items: baseline; font-size: 22px; }
.policy h2 span { color: var(--orange); font-size: 16px; font-weight: 600; }
.note { border-left: 3px solid var(--orange); background: var(--orange-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 15px; margin: 6px 0 14px; }

/* ---------- footer ---------- */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 999px;
         opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 44px; gap: 28px; }
  .hero-art { max-width: 420px; aspect-ratio: 16 / 10; }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .home-hero .actions .btn, .contact .actions .btn { width: 100%; }
  .page-hero { padding: 40px 0 22px; text-align: left; }
  .page-hero .lead { margin-left: 0; }
  .contact { padding: 20px; border-radius: 18px; }
  .card { padding: 18px; }
  .step { padding: 60px 18px 18px; }
  .step::before { left: 18px; }
  .cta { flex-direction: column; align-items: stretch; padding: 26px 20px; }
  .cta .actions .btn { width: 100%; }
  .toc ol { columns: 1; }
  summary { padding: 15px 16px; }
  details .answer { padding: 0 16px 16px; }
  footer .wrap { flex-direction: column; }
}
