:root {
  --bg: #f4f6f9;
  --card: #fff;
  --text: #17202a;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #0b6bcb;
  --accent-dark: #08529c;
  --warn-bg: #fff6e5;
  --warn: #8a5a00;
  --err-bg: #fdecec;
  --err: #a1251b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { background: linear-gradient(135deg, #0b3d91, #0b6bcb); color: #fff; padding: 28px 0 56px; }
.top h1 { margin: 0 0 6px; font-size: 26px; }
.top p { margin: 0; opacity: .9; }
main { margin-top: -36px; }
.card { background: var(--card); border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); padding: 18px; margin-bottom: 14px; }
.link-form { display: flex; gap: 10px; padding: 12px; }
.link-form input { flex: 1; min-width: 0; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font: 600 16px/1 inherit; cursor: pointer; }
button:hover { background: var(--accent-dark); }
button:disabled { opacity: .6; cursor: wait; }
.hint { color: var(--muted); font-size: 14px; margin: -4px 4px 14px; }
.hint a { color: var(--accent); }
.error { background: var(--err-bg); color: var(--err); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }

.car { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.car img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--line); }
.car h2 { margin: 0 0 2px; font-size: 20px; }
.car .ko { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.car dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.car dt { color: var(--muted); }
.car dd { margin: 0; }
.car a { color: var(--accent); font-size: 14px; }

.car-form h2 { font-size: 16px; margin: 0 0 12px; }
.car-form small { color: var(--muted); font-weight: normal; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.grid .wide { grid-column: 1 / -1; }

.total { display: flex; justify-content: space-between; align-items: end; gap: 12px; background: #0b3d91; color: #fff; }
.total-label { opacity: .85; font-size: 14px; }
.total-azn { font-size: 34px; font-weight: 700; line-height: 1.1; }
.total-usd { opacity: .85; }
.fx { font-size: 12px; opacity: .8; text-align: right; }

.warn { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.warn.danger { background: var(--err-bg); color: var(--err); font-weight: 600; }

.section h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.section h3 span:last-child { white-space: nowrap; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row .note { display: block; color: var(--muted); font-size: 12px; }
.row .amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.disclaimer { color: var(--muted); font-size: 13px; }
.foot { padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--accent); word-break: break-all; }

@media (max-width: 600px) {
  .top h1 { font-size: 22px; }
  .car { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .total-azn { font-size: 28px; }
  .total { flex-direction: column; align-items: start; }
  .fx { text-align: left; }
}
