/* Fraunces and Be Vietnam Pro cover Latin only; other scripts fall back to the system font per glyph. */
@font-face { font-family: Fraunces; src: url(/fonts/Fraunces.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(/fonts/BeVietnamPro-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(/fonts/BeVietnamPro-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #121418; --surface: #1C1F26; --surface-2: #22262E; --border: #2C313A;
  --text: #ECEDEF; --text-2: #C4C8D0; --text-3: #9AA1AD;
  --accent: #F2B705; --accent-hover: #FFD24D; --accent-soft: #F2B70526; --on-accent: #121418;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 "Be Vietnam Pro", system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: Fraunces, system-ui, sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

header { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 600; color: var(--text); text-decoration: none; }
.tagline { color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.logo span { color: var(--accent); }
.logo img { margin-inline-end: 10px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding-block: 10px; }
nav a:hover, nav a[aria-current] { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero h1 em { color: var(--accent); }
.lead { color: var(--text-2); font-size: 19px; }
.hero .lead { max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding-inline: 24px; border-radius: 26px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.badge { color: var(--text-3); font-size: 15px; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phones img { width: 46%; max-width: 230px; height: auto; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 24px 60px #0008; }
.phones img:last-child { margin-top: 48px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 72px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.card h2 { font-size: 21px; }
.card p { color: var(--text-3); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.doc { max-width: 72ch; padding-block: 32px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 1.8em; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-block: .4em; }
.updated { color: var(--text-3); font-size: 15px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-block: 10px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.credits { columns: 2; }

footer { border-top: 1px solid var(--border); padding-block: 28px; color: var(--text-3); font-size: 14px; }
footer p { margin: 12px 0 0; }
.langs summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); }
.langs ul { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.langs a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: var(--surface-2); color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .features { grid-template-columns: 1fr; }
  .credits { columns: 1; }
}
