/* MyQRCode public site. Own styles only (CSP: style-src 'self'); no scripts, no fonts or files from elsewhere. */
:root {
  --bg: #f7f5ef; --surface: #ffffff; --alt: #efece2; --line: #dedacb; --text: #15231d; --muted: #58655e;
  --brand: #0f6b4f; --brand-ink: #0b523c; --on-brand: #ffffff; --gold: #f0b63c; --ok: #0f6b4f; --err: #b3261e;
  --qr: #15231d; --qr-bg: #ffffff;
  --shadow: 0 1px 2px rgba(21, 35, 29, .06), 0 12px 32px rgba(21, 35, 29, .08);
  --radius: 18px; --radius-s: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512; --surface: #17201b; --alt: #131b17; --line: #26332c; --text: #e9efe9; --muted: #9bab9f;
    --brand: #3fbf93; --brand-ink: #62d3ab; --on-brand: #06231a; --gold: #f0b63c; --ok: #62d3ab; --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
svg { display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--brand); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 5; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.mark b { font-weight: 800; color: var(--brand); }
.mk-bg { fill: var(--brand); }
.mk-fg { fill: var(--bg); }
.mk-dot { fill: var(--gold); }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.langs a { padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }

/* hero */
.hero { padding: 72px 0 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.kicker { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); color: var(--brand-ink); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--alt); border-color: var(--line); }
.hero-qr { margin: 0; justify-self: center; text-align: center; }
.qr-card { width: min(300px, 70vw); padding: 14px; border-radius: 28px; background: var(--qr-bg); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.qr-card::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 88px; height: 88px; border-radius: 24px; background: var(--gold); z-index: -1; }
.hero-qr { position: relative; z-index: 0; }
.qr { width: 100%; height: auto; }
.qr path { fill: var(--qr); }
.hero-qr figcaption { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--alt); border-block: 1px solid var(--line); }
.sec-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-bottom: 32px; }
.ico { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile .ico { margin-bottom: 16px; }
.tile p, .type p, .steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.type { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.type h3 { margin-bottom: .25em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.steps li { padding-top: 20px; border-top: 2px solid var(--line); }
.num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; }

/* contact */
.sec-cta { background: var(--alt); border-top: 1px solid var(--line); }
.contact { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.contact input, .contact textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.contact textarea { resize: vertical; min-height: 120px; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; max-width: 46ch; }
.ok, .err { padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.ok { color: var(--ok); border-color: var(--ok); }
.err { color: var(--err); border-color: var(--err); }

/* footer */
.foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-by { display: inline-flex; line-height: 0; opacity: .9; }
.foot-by:hover, .foot-by:focus-visible { opacity: 1; }
.foot-by img { height: 30px; width: auto; }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .langs { margin-inline-start: auto; }
  .hero { padding: 40px 0 48px; }
  .hero-in { grid-template-columns: 1fr; }
  .qr-card { width: min(240px, 70vw); }
  .sec { padding: 48px 0; }
  .types, .steps { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .contact { padding: 20px; }
  .contact-foot .btn { width: 100%; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
