/* axolot.com - site styles (2026 redesign) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
}

:root {
  --bg: #f4f6fb;
  --card: #fff;
  --ink: #0f1b33;
  --muted: #5e6a82;
  --line: #dfe4ee;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --red: #e11d48;
  --radius: 20px;
  /* product colours (overridden per page with .t-*) */
  --c1: #1d4ed8;
  --c2: #0ea5e9;
  --soft: #e8efff;
}
.t-xls     { --c1: #15803d; --c2: #22c55e; --soft: #dcfce7; }
.t-xss     { --c1: #0f766e; --c2: #14b8a6; --soft: #ccfbf1; }
.t-docx    { --c1: #1d4ed8; --c2: #3b82f6; --soft: #dbeafe; }
.t-writer  { --c1: #4338ca; --c2: #6366f1; --soft: #e0e7ff; }
.t-reports { --c1: #7e22ce; --c2: #a855f7; --soft: #f3e8ff; }
.t-cpp     { --c1: #be123c; --c2: #fb7185; --soft: #ffe4e6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; }
code, pre, kbd { font-family: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace; }
:not(pre) > code { background: var(--soft); color: var(--c1); padding: .1em .4em; border-radius: 6px; font-size: .88em; overflow-wrap: anywhere; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: #cfd8ea; font-size: 14px; text-align: center; padding: 9px 16px; }
.announce b { color: #fff; }
.announce a { color: #fff; }

header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; height: 74px; gap: 36px; }
.nav .logo img { height: 36px; display: block; }
.menu { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.menu a { position: relative; padding: 25px 0; color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--brand); }
.menu a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }
.nav .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
#navtoggle, .burger { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #b9c4d8; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.white { background: #fff; color: var(--ink); border: 0; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 0; }
.btn.ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- home hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f1b33 0%, #1d3a8a 60%, #1d4ed8 100%);
  color: #fff; border-radius: 28px; margin: 28px 0 0; padding: 70px 64px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  overflow: hidden; position: relative;
}
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,.45), transparent 65%); pointer-events: none; }
.hero h1 { font-size: 50px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: #c6d3ee; margin: 0 0 30px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.shots { position: relative; height: 340px; z-index: 1; }
.shots img { position: absolute; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border: 4px solid rgba(255,255,255,.9); }
.shots .a { width: 72%; right: 0; top: 0; }
.shots .b { width: 58%; left: 0; bottom: -10px; }

/* ---------- product hero ---------- */
.phero {
  background: linear-gradient(135deg, #0f1b33 0%, var(--c1) 70%, var(--c2) 130%);
  color: #fff; border-radius: 28px; margin: 28px 0 0; padding: 56px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
  position: relative; overflow: hidden;
}
.phero.solo { grid-template-columns: 1fr; padding: 48px 56px; }
.phero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); pointer-events: none; }
.crumb { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.phero h1 { font-size: 46px; margin: 0 0 6px; letter-spacing: -.025em; }
.phero .sub { font-size: 20px; font-weight: 600; color: rgba(255,255,255,.9); margin: 0 0 14px; }
.phero p.lead { font-size: 17px; color: rgba(255,255,255,.78); margin: 0 0 24px; max-width: 560px; }
.phero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.phero .visual { position: relative; z-index: 1; }
/* Grid items default to min-width:auto, so a long code line widened the whole hero (and the page on phones). */
.hero > *, .phero > * { min-width: 0; }
.phero .visual img.shot { display: block; width: 100%; max-height: 380px; object-fit: cover; object-position: top left; border-radius: 14px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); background: #fff; }
.phero .visual img.illu { display: block; width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }

/* ---------- code card ---------- */
.codecard { background: #0b1220; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12); }
.codecard .bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #111a2c; color: #8a97b0; font-size: 12.5px; font-weight: 600; }
.codecard .bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.codecard .bar span { margin-left: 8px; }
.codecard pre { margin: 0; padding: 18px 20px; color: #e2e8f0; font-size: 13.2px; line-height: 1.7; overflow-x: auto; }
.codecard.dense pre { font-size: 12px; line-height: 1.6; }
.k { color: #f472b6; } .s { color: #fca5a5; } .c { color: #64748b; } .n { color: #fbbf24; } .f { color: #93c5fd; } .ty { color: #5eead4; }

/* ---------- sections ---------- */
section.block { padding: 72px 0 0; }
.h2c { text-align: center; font-size: 36px; margin: 0; }
.subc { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 640px; }
.eyebrow { display: block; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c1); margin-bottom: 8px; }
h2.left { font-size: 30px; margin: 0 0 14px; }

.prose { font-size: 16.5px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 30px 0 8px; }
.prose h2.left { margin-top: 0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin-top: 40px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li span { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%230f1b33' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(15,27,51,.4); }
.feat > img { display: block; width: 100%; aspect-ratio: 240 / 150; height: auto; border-bottom: 1px solid var(--line); }
.feat .body { padding: 18px 22px 22px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.feat ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.feat li { margin: 3px 0; }
.feat pre { background: #0b1220; color: #e2e8f0; font-size: 12px; padding: 10px 12px; border-radius: 10px; overflow-x: auto; margin: 8px 0 0; line-height: 1.6; }
.feat.wide { grid-column: span 2; }

/* ---------- home cards ---------- */
.filter { display: flex; gap: 10px; justify-content: center; margin: 28px 0 30px; flex-wrap: wrap; }
.filter button { font: inherit; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.filter button:hover { color: var(--ink); }
.filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: .2s; color: var(--ink); text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -25px rgba(15,27,51,.35); color: var(--ink); }
.card[hidden] { display: none; }
.card .top { height: 140px; display: flex; align-items: flex-end; padding: 20px 22px; color: #fff; position: relative; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.card .top .big { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.card .top .badge { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--red); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.card .foot .plat { color: var(--muted); }
.card .foot b { color: var(--brand); }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.why div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.why img { width: 48px; height: 48px; margin-bottom: 14px; display: block; }
.why h4 { margin: 0 0 6px; font-size: 17px; }
.why p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; margin-top: 40px; overflow: hidden; }
.steps > div { padding: 34px 30px; border-right: 1px solid var(--line); }
.steps > div:last-child { border: 0; }
.steps b.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 12px; }
.steps h4 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.frakt { margin: 72px 0 0; background: #fff; border: 1px dashed #b9c4d8; border-radius: 18px; padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.frakt span { color: var(--muted); }

/* ---------- gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.gallery a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; transition: .2s; }
.gallery a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -25px rgba(15,27,51,.4); }
.gallery img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top left; border-radius: 9px; }
.gallery span { display: block; font-size: 14px; color: var(--muted); padding: 8px 4px 2px; }
.lightbox { position: fixed; inset: 0; background: rgba(9,14,28,.86); display: flex; align-items: center; justify-content: center; padding: 30px; z-index: 200; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }

/* ---------- tables: purchase + download ---------- */
.ptable { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 22px; scroll-margin-top: 100px; }
.ptable .head { display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.ptable .head .dot { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ptable .head h3 { margin: 0; font-size: 20px; }
.ptable .head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ptable .head a.more { margin-left: auto; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ptable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th:first-child { width: 40%; }
.dl th:first-child { width: 34%; }
.dl th:last-child { width: 22%; }
.ptable th, .ptable td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; font-weight: 700; }
.ptable th:first-child, .ptable td:first-child { text-align: left; padding-left: 26px; }
.ptable td:first-child { font-weight: 600; }
.ptable td:first-child small { display: block; font-weight: 400; color: var(--muted); }
.price { white-space: nowrap; font: inherit; font-weight: 800; font-size: 15px; padding: 9px 16px; min-width: 112px; border-radius: 999px; border: 1.5px solid var(--c1); color: var(--c1); background: #fff; cursor: pointer; transition: .15s; }
.price:hover { background: var(--c1); color: #fff; }

.dl select { font: inherit; font-size: 15px; padding: 9px 36px 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); max-width: 100%; }
.dl td:nth-child(2) { text-align: left; }
.dl .ver { font-size: 13px; color: var(--muted); font-weight: 500; }

.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; font-size: 14.5px; }
.pills li b { display: block; }

.notice { background: #fff8e6; border: 1px solid #f6d58b; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin-top: 18px; }
.notice.info { background: #eef4ff; border-color: #c7d7fb; }

.keybox { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.keybox input { flex: 1 1 360px; font: inherit; font-family: Consolas, monospace; font-size: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; min-width: 0; }
.keybox input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
#lblResult { font-weight: 700; }
#lblResult.ok { color: #15803d; }
#lblResult.bad { color: var(--red); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.contact > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.contact img { width: 44px; height: 44px; display: block; margin-bottom: 12px; }
.contact h3 { margin: 0 0 6px; font-size: 17px; }
.contact p { margin: 0; color: var(--muted); }
.contact a { font-weight: 700; }

/* ---------- how-to steps / code pages ---------- */
.howto { counter-reset: s; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.howto > li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 26px 84px; position: relative; counter-increment: s; }
.howto > li::before { content: counter(s); position: absolute; left: 26px; top: 24px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 800; display: grid; place-items: center; }
.howto h3 { margin: 6px 0 6px; font-size: 18px; }
.howto p { margin: 0 0 8px; color: var(--muted); }
.howto ul { color: var(--muted); margin: 0 0 8px; }
.howto img { display: block; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
pre.code { background: #0b1220; color: #e2e8f0; padding: 20px 22px; border-radius: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; margin: 14px 0 26px; }

.news { display: grid; gap: 22px; margin-top: 40px; }
.news .feat { flex-direction: row; }
.news .feat > img { width: 300px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: 240 / 150; align-self: flex-start; }
.news .feat .body { padding: 24px 28px; }
.news .big { font-size: 26px; font-weight: 800; color: var(--c1); margin: 6px 0; }
.jsondemo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 10px; }
.jsondemo pre { margin: 0; }
.jsondemo img { border: 1px solid var(--line); border-radius: 8px; }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #a9b6cf; padding: 56px 0 0; margin-top: 80px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer.site ul { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
footer.site a { color: #a9b6cf; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .logo { height: 32px; filter: brightness(0) invert(1); }
footer.site .footer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site .footer p { margin: 0; }
footer.site .axolot-cookie-links { font-size: 14px !important; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu { gap: 18px; }
  .feats, .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { height: 64px; gap: 14px; }
  .nav .logo img { height: 30px; }
  .burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; margin-left: auto; }
  .burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after { position: absolute; top: 6px; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); padding: 8px 24px 16px; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu a.on::after { display: none; }
  #navtoggle:checked ~ .menu { display: flex; }
  .nav .actions { margin-left: 0; }
  .nav .actions .btn:not(.primary) { display: none; }
  .hero, .phero { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 22px; }
  .hero h1 { font-size: 36px; }
  .phero h1 { font-size: 34px; }
  .shots { display: none; }
  .feats, .cards, .why, .contact { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
  .frakt { flex-direction: column; align-items: flex-start; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .h2c { font-size: 28px; }
  .news .feat { flex-direction: column; }
  .news .feat > img { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .jsondemo { grid-template-columns: 1fr; }
  .ptable th, .ptable td { padding: 10px 8px; }
  .ptable th:first-child, .ptable td:first-child { padding-left: 14px; }
  .price { min-width: 0; padding: 8px 10px; font-size: 13.5px; }
  .price .cur { display: none; }
  .ptable th:first-child { width: 34%; }
  .ptable .head { flex-wrap: wrap; }
  .ptable .head a.more { margin-left: 62px; }
  .howto > li { padding: 70px 20px 22px; }
  .howto > li::before { top: 20px; left: 20px; }
  .dl tr { display: grid; grid-template-columns: 1fr auto; }
  .dl td:first-child { grid-column: 1 / -1; padding-bottom: 0; border: 0; }
  .dl th { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav .actions .btn.primary { padding: 8px 14px; font-size: 14px; }
}

/* ---------- shop: cart, checkout, order (2026-11-23) ---------- */
.cartlink { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.cartlink[hidden] { display: none; }
.cartlink:hover { border-color: #b9c4d8; color: var(--ink); }
.cartlink b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.price.in { background: var(--c1); color: #fff; position: relative; }
.price.in::after { content: attr(data-qty); position: absolute; top: -8px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; line-height: 20px; }
.cartbar { position: sticky; bottom: 0; z-index: 50; background: rgba(15,27,51,.96); color: #fff; padding: 12px 0; margin-top: 40px; }
.cartbar[hidden] { display: none; }
.cartbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 10000; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: opacity .4s; max-width: calc(100% - 32px); }
.toast.out { opacity: 0; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 24px; align-items: start; margin: 32px 0 80px; }
.checkout h2 { margin: 0 0 6px; font-size: 22px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.err { color: #b91c1c; font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.err[hidden] { display: none; }
.coform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.coform label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.coform label.wide { grid-column: 1 / -1; }
.coform label em { color: var(--red); font-style: normal; }
.coform label small.err { margin: 2px 0 0; font-weight: 500; }
.coform input, .coform select { font: inherit; font-size: 15px; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
.coform input:focus, .coform select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.coform input[aria-invalid="true"] { border-color: #b91c1c; }
.cosum { position: sticky; top: 96px; padding: 28px 30px; }
.colines { list-style: none; margin: 14px 0 0; padding: 0; }
.colines li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.colines .nm { font-weight: 600; font-size: 15px; }
.colines .row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.colines .qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.colines .qty button { border: 0; background: #f8fafc; width: 30px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.colines .qty input { width: 42px; border: 0; text-align: center; font: inherit; font-size: 14px; padding: 5px 0; -moz-appearance: textfield; }
.colines .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.colines .lp { margin-left: auto; font-weight: 700; white-space: nowrap; }
.colines .rm { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.cototals { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: 15px; }
.cototals td { padding: 5px 0; }
.cototals td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.cototals tr.total td { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.paybtn { width: 100%; justify-content: center; font-size: 16px; padding: 14px; margin: 6px 0 14px; }
.hint.secure { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.order { margin-top: 32px; border: 2px solid #86efac; }
.order h3 { margin: 22px 0 4px; font-size: 18px; }
.order .keys { list-style: none; margin: 10px 0 0; padding: 0; }
.order .keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order .keys .nm { flex: 1 1 100%; font-weight: 600; font-size: 14px; }
.order .keys code { font-family: Consolas, monospace; font-size: 17px; letter-spacing: .04em; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; user-select: all; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .cosum { position: static; order: -1; }
}
@media (max-width: 520px) {
  .coform .grid2 { grid-template-columns: 1fr; }
  .cartlink { width: 40px; height: 40px; }
}
