/* Rechip EN — public site styles (mobile first) */
:root {
  --red: #ed1005;
  --red-d: #c40d03;
  --ink: #151515;
  --ink-2: #2a2a2a;
  --grey: #f4f4f2;
  --line: #e2e2de;
  --muted: #6b6b68;
  --ok: #2e8b3d;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-h: "Play", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(26px, 4.4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; word-break: break-word; }
:focus-visible { outline: 3px solid rgba(237,16,5,.45); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 8px;
  padding: 10px 18px; font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.hdr__logo img { width: 136px; height: auto; }
.hdr__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.hdr__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.nav.is-open { display: flex; }
.nav a { color: var(--ink); font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav a.btn { margin-top: 12px; border-bottom: 0; color: #fff; }
@media (min-width: 900px) {
  .hdr__burger { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; border: 0; box-shadow: none; }
  .nav a { border: 0; padding: 6px 0; font-size: 15px; }
  .nav a:not(.btn):hover { color: var(--red); text-decoration: none; }
  .nav a.btn { margin: 0; }
  .hdr__logo img { width: 156px; }
}

/* breadcrumbs */
.bc { font-size: 14px; color: var(--muted); padding: 14px 0 0; overflow-wrap: anywhere; }
.bc a { color: var(--muted); }
.bc span { margin: 0 2px; }

/* sections */
.sec { padding: 48px 0; }
.sec--top { padding-top: 20px; }
.sec--grey { background: var(--grey); }
.sec--dark { background: var(--ink); color: #fff; }
.sec__h { margin-bottom: 14px; }
.sec__h2 { font-size: 22px; margin: 32px 0 14px; }
.sec__sub { color: var(--muted); max-width: 760px; }
.sec--dark .sec__sub { color: #bbb; }
@media (min-width: 900px) { .sec { padding: 72px 0; } .sec--top { padding-top: 28px; } }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(237,16,5,.35), transparent 60%), linear-gradient(180deg, #151515, #1f1f1f); color: #fff; }
.hero__in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: #ff6a5f; margin-bottom: 10px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero__lead { font-size: 17px; color: #d6d6d6; max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero__cta .btn { flex: 1 1 220px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: #e5e5e5; font-size: 15px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border: solid var(--red); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.hero__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; align-self: start; }
.hero__cardh { font-family: var(--font-h); font-size: 20px; margin-bottom: 12px; }
.hero__card p { color: #cfcfcf; font-size: 14px; margin: 14px 0 0; }
.coins { display: flex; flex-wrap: wrap; gap: 8px; }
.coin { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.6fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 80px; gap: 48px; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff;
  font: 700 16px/32px var(--font-h); text-align: center; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 64px 18px 18px; } .steps li::before { top: 18px; } }
.mini-steps { padding-left: 20px; margin: 0 0 18px; }
.mini-steps li { margin-bottom: 6px; }

/* order block */
.order { display: grid; gap: 24px; }
.order__side p { color: var(--ink-2); }
@media (min-width: 1000px) { .order { grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; } .order__side { position: sticky; top: 96px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
@media (min-width: 700px) { .card { padding: 28px; } }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--red); padding: 8px 12px; background: rgba(237,16,5,.04); border-radius: 0 6px 6px 0; }

/* form */
.oform { display: grid; gap: 18px; }
.oform__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .oform__grid { grid-template-columns: 1fr 1fr; } }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.req { color: var(--red); }
.field input[type=email], .field input[type=text], .field textarea, .filter input {
  width: 100%; font: 16px/1.4 var(--font); padding: 11px 12px; border: 1px solid #cfcfca; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .filter input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21,21,21,.08); }
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(237,16,5,.12) !important; }
.optl { color: var(--muted); font-weight: 400; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage { position: relative; cursor: pointer; }
.stage input { position: absolute; opacity: 0; inset: 0; }
.stage span { display: block; border: 2px solid #d9d9d4; border-radius: 10px; padding: 10px 8px; text-align: center; height: 100%; transition: border-color .15s, background .15s; }
.stage b { display: block; font-size: 15px; }
.stage small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.stage input:checked + span { border-color: var(--red); background: rgba(237,16,5,.05); }
.stage input:focus-visible + span { outline: 3px solid rgba(237,16,5,.45); outline-offset: 2px; }
.opts { display: grid; gap: 6px; }
@media (min-width: 640px) { .opts { grid-template-columns: 1fr 1fr; } }
label.opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; font-size: 15px; line-height: 1.3; }
label.opt:hover { border-color: #bdbdb8; }
label.opt input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
label.opt span { flex: 1; }
label.opt:has(input:checked) { border-color: var(--red); background: rgba(237,16,5,.04); }
.opt__info { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #c9c9c4; color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.opt__info:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.price { display: grid; gap: 2px; background: var(--ink); color: #fff; border-radius: 10px; padding: 14px 16px; }
.price__label { font-size: 13px; color: #bbb; text-transform: uppercase; letter-spacing: .08em; }
.price__val { font: 700 30px/1.15 var(--font-h); }
.price__val--sm { font-size: 22px; }
.price__note { font-size: 13px; color: #c9c9c9; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 2px dashed #c4c4be; border-radius: 10px; padding: 18px; cursor: pointer; background: #fafaf8; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--red); background: rgba(237,16,5,.03); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); }
.drop__txt { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.drop__txt small { color: var(--muted); }
.drop.has-file { border-style: solid; border-color: var(--ok); background: rgba(46,139,61,.05); }
.agree { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.oform__err { background: #fff1f0; border: 1px solid #f3b6b1; color: #9b1208; border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.oform__submit { width: 100%; }
.oform__hint { font-size: 13px; color: var(--muted); margin: -6px 0 0; text-align: center; }
.progress { position: relative; height: 34px; background: #eee; border-radius: 8px; overflow: hidden; }
.progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; font: 600 14px/34px var(--font); color: #fff; mix-blend-mode: difference; }
.oform__ok { text-align: center; padding: 20px 4px; }
.oform__okico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; line-height: 64px; }
.oform__ok p { color: var(--ink-2); }

/* brands */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 22px; }
@media (min-width: 560px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .brands { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .brands { grid-template-columns: repeat(6, 1fr); } }
.brand { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s; }
.brand small { color: var(--muted); font-weight: 400; font-size: 12px; }
.brand:hover { border-color: var(--red); text-decoration: none; transform: translateY(-1px); }

/* services */
.svc-grid { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { display: block; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px 18px; color: #fff; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.svc b { display: block; font-family: var(--font-h); font-size: 18px; margin-bottom: 4px; }
.svc span { color: #bdbdbd; font-size: 14px; line-height: 1.45; }
.svc:hover { border-color: var(--red); background: rgba(237,16,5,.08); text-decoration: none; }
.svc-grid--light .svc { color: var(--ink); border-color: var(--line); background: #fff; }
.svc-grid--light .svc span { color: var(--muted); }
.svc-grid--light .svc:hover { border-color: var(--red); background: #fff; }

/* ECU list */
.ecus { display: grid; gap: 8px; margin-top: 20px; }
@media (min-width: 760px) { .ecus { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.ecus__g { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ecus__g summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.ecus__g summary::-webkit-details-marker { display: none; }
.ecus__g summary::after { content: "+"; color: var(--red); font-weight: 700; margin-left: 10px; }
.ecus__g[open] summary::after { content: "–"; }
.ecus__g summary small { color: var(--muted); font-weight: 400; margin-left: auto; }
.ecus__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.ecus__list span { background: var(--grey); border-radius: 6px; padding: 3px 8px; font-size: 13px; }

/* tables */
.filter { margin: 18px 0 14px; max-width: 520px; }
.tbl-wrap { margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:hover { background: var(--grey); }
.tbl a { color: var(--ink); font-weight: 600; }
.tbl a:hover { color: var(--red); }
@media (max-width: 759px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
  .tbl td { border: 0; padding: 3px 0; display: flex; gap: 10px; }
  .tbl td::before { content: attr(data-l); flex: 0 0 100px; color: var(--muted); font-size: 13px; }
  .tbl td:empty { display: none; }
}

/* file spec */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.spec div { background: #fff; padding: 12px 14px; }
.spec span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec b { overflow-wrap: anywhere; }
@media (min-width: 900px) { .spec { grid-template-columns: repeat(4, 1fr); } }

/* article */
.article { display: grid; gap: 32px; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.prose { max-width: 780px; }
.prose--narrow { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 22px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose .lead { font-size: 18px; color: var(--ink-2); }
.aside { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; }
@media (min-width: 1000px) { .aside { position: sticky; top: 96px; } }
.aside__h { font-weight: 700; padding: 6px 10px 8px; }
.aside a { color: var(--ink); padding: 7px 10px; border-radius: 6px; font-size: 15px; }
.aside a:hover { background: var(--grey); text-decoration: none; }
.aside a.is-active { background: var(--ink); color: #fff; }
.cta-band { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--grey); border-radius: var(--radius); padding: 18px 20px; margin: 32px 0 18px; }
.cta-band > div { flex: 1 1 280px; }

/* contacts */
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.contact-list div { background: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact-list span { color: var(--muted); min-width: 130px; }

/* order page */
.ord { max-width: 760px; }
.ord__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.ord__head h1 { margin: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; background: var(--grey); }
.badge--awaiting_payment { background: #fff3cd; color: #7a5600; }
.badge--paid { background: #dff3e3; color: #1f6b2c; }
.badge--cancelled { background: #eee; color: #666; }
.badge--new { background: #e7efff; color: #234c9b; }
.track { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; }
.track li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--muted); position: relative; }
.track span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ccc; display: grid; place-items: center; font-weight: 700; background: #fff; }
.track li.done { color: var(--ink); } .track li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.track li.cur { color: var(--ink); font-weight: 600; } .track li.cur span { border-color: var(--red); color: var(--red); }
.ord__box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.ord__box h2 { font-size: 22px; }
.ord__amount { font: 700 38px/1.1 var(--font-h); margin: 4px 0 12px; }
.ord__details { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0 0 18px; font-size: 15px; }
.ord__details dt { color: var(--muted); font-size: 13px; margin-top: 8px; }
.ord__details dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .ord__details { grid-template-columns: 160px 1fr; } .ord__details dt { margin-top: 0; padding: 6px 0; } .ord__details dd { padding: 6px 0; border-bottom: 1px solid var(--line); } .ord__details dt { border-bottom: 1px solid var(--line); } }

.empty { text-align: center; padding: 40px 0; }

/* footer */
.ftr { background: var(--ink); color: #ddd; padding: 44px 0 20px; font-size: 15px; }
.ftr a { color: #ddd; display: block; padding: 3px 0; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.ftr__grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .ftr__grid > div:first-child { grid-column: auto; } }
.ftr__brand { margin-bottom: 10px; }
.ftr__brand img { width: 150px; height: auto; }
.ftr__h { color: #fff; font-weight: 600; margin-bottom: 8px; }
.ftr__muted { color: #9a9a9a; display: block; }
.ftr__legal { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; font-size: 12.5px; color: #8d8d8d; }
.ftr__legal p { margin: 0 0 6px; }
