/* ═══════════════════════════════════════════════════
   Vivamed — dizayn tizimi (klon / QR test muhiti)
   Brend ranglari originaldan olingan: #038ea0
   ═══════════════════════════════════════════════════ */

:root {
  --brand: #038ea0;
  --brand-hover: #037786;
  --brand-soft: #e6f4f6;
  --brand-rgb: 3, 142, 160;

  --bg: #ffffff;
  --surface: #f7f9fa;
  --surface-2: #f2f2f2;
  --line: #e6eaec;
  --line-strong: #d3dadd;

  --text: #10222a;
  --text-2: #5a6b73;
  --text-3: #8a999f;

  --ok: #1b9e5f;
  --ok-soft: #e7f6ee;
  --warn: #c9821a;
  --warn-soft: #fdf3e2;
  --err: #cf3b३b;
  --err: #cf3b3b;
  --err-soft: #fdecec;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 2px 10px rgba(16, 34, 42, .05);
  --shadow-md: 0 8px 24px rgba(16, 34, 42, .08);
  --shadow-brand: 0 8px 22px rgba(var(--brand-rgb), .25);

  --wrap: 1240px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ─── Demo banner ─── */
.demo-bar {
  background: #1d2b32; color: #fff; font-size: 13px;
  padding: 8px 20px; text-align: center; line-height: 1.4;
}
.demo-bar b { color: #7fd4e0; }
.demo-bar a { color: #7fd4e0; text-decoration: underline; }

/* ─── Header ─── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-nav {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  height: var(--header-h); display: flex; align-items: center; gap: 22px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-txt { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }

.menu { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.menu a, .more-btn {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  background: none; border: 0; white-space: nowrap;
  transition: background .15s, color .15s;
}
.menu a:hover, .more-btn:hover { background: var(--brand-soft); color: var(--brand); }
.menu a.on { color: var(--brand); font-weight: 600; }

.more { position: relative; }
.more-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-md); padding: 7px; display: none; z-index: 20;
}
.more.open .more-menu { display: block; }
.more-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); }
.more-menu a:hover { background: var(--brand-soft); color: var(--brand); }

.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; background: var(--surface); border-radius: 9px; padding: 3px; }
.lang a { padding: 4px 8px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.lang a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.hdr-tel { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
}
.burger span::before { content: ""; position: absolute; top: -6px; }
.burger span::after { content: ""; position: absolute; top: 6px; }

/* Mobil drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(16, 34, 42, .45);
}
.drawer.on { display: block; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; padding: 18px; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--text-2); padding: 0 6px; }
.drawer a.dl { display: block; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.drawer a.dl:hover { background: var(--brand-soft); color: var(--brand); }
.drawer-sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin: 16px 0 6px; padding: 0 12px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: #d5edf1; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn--block { display: flex; width: 100%; }

/* ─── Sections ─── */
.sec { padding: 52px 0; }
.sec--alt { background: var(--surface); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 6px; }
.sec-title { font-size: 30px; }
.sec-sub { color: var(--text-2); font-size: 15.5px; margin: 8px 0 0; }
.sec-all { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 14.5px; font-weight: 600; }
.sec-all svg { width: 13px; height: 13px; }

.grid { display: grid; gap: 18px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Hero ─── */
.hero { padding: 30px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.hero-main, .hero-side-card {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #045f6c 0%, #038ea0 55%, #14b3c6 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-main { min-height: 340px; padding: 34px; }
.hero-main::after, .hero-side-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.hero-main > *, .hero-side-card > * { position: relative; z-index: 1; }
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-side-card h3 svg { width: 19px; height: 19px; vertical-align: -3px; margin-right: 5px; }
.br-pin svg { width: 100%; height: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px;
}
.hero-h1 { font-size: 38px; line-height: 1.12; margin-bottom: 12px; max-width: 15ch; }
.hero-p { font-size: 16px; opacity: .92; max-width: 46ch; margin-bottom: 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn--primary { background: #fff; color: var(--brand); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hero-cta .btn--primary:hover { background: #f0fbfc; }
.hero-cta .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-side-card { min-height: 0; padding: 22px; }
.hero-side-card--2 { background: linear-gradient(135deg, #1d2b32 0%, #37505b 100%); }
.hero-side-card h3 { font-size: 19px; margin-bottom: 6px; }
.hero-side-card p { font-size: 13.5px; opacity: .88; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat { background: var(--surface); border-radius: var(--r); padding: 20px; text-align: center; }
.stat-n { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat-l { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }

/* ─── Cards ─── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Direction card */
.dir-card { padding: 22px 16px; text-align: center; align-items: center; }
.dir-ico {
  width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; margin-bottom: 12px;
}
.dir-ico svg { width: 26px; height: 26px; }
.dir-name { font-size: 14.5px; font-weight: 600; }

/* Doctor card */
.doc-photo {
  aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--brand-soft), #f4fbfc);
  display: grid; place-items: center; position: relative;
}
.doc-avatar {
  width: 86px; height: 86px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -.02em;
}
.doc-cat {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--brand);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.doc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.doc-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.doc-job { font-size: 13.5px; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 11.5px; background: var(--surface); color: var(--text-2); padding: 4px 9px; border-radius: 7px; }
.doc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 15px; font-weight: 700; }
.price small { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* Service row */
.srv { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.srv:last-child { border-bottom: 0; }
.srv-name { font-weight: 600; font-size: 15px; }
.srv-meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.srv-price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* Checkup card */
.chk-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.chk-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.chk-desc { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.chk-list { margin-bottom: 16px; }
.chk-list li { font-size: 13.5px; padding: 5px 0 5px 22px; position: relative; color: var(--text-2); }
.chk-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 13px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.chk-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; margin-bottom: 14px; }
.chk-price b { font-size: 22px; }
.chk-price s { color: var(--text-3); font-size: 14px; }

/* News / blog card */
.post-img { aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--brand-soft), #eef6f8); display: grid; place-items: center; }
.post-img svg { width: 42px; height: 42px; color: var(--brand); opacity: .45; }
.post-body { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--text-3); margin-bottom: 8px; display: flex; gap: 9px; align-items: center; }
.chip { background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.post-title { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; line-height: 1.3; }
.post-txt { font-size: 13.5px; color: var(--text-2); flex: 1; }

/* Branch card */
.br-map { aspect-ratio: 16 / 9; background: var(--surface-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M0 20h40M20 0v40' stroke='%23dfe5e7' stroke-width='1'/></svg>"); display: grid; place-items: center; }
.br-pin { width: 40px; height: 40px; color: var(--brand); }
.br-body { padding: 18px; }
.br-name { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.br-row { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); padding: 4px 0; }
.br-row svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* Discount card */
.disc { padding: 22px; position: relative; background: linear-gradient(135deg, #fff, var(--brand-soft)); }
.disc-badge {
  position: absolute; top: 16px; right: 16px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 9px;
}
.disc h3 { font-size: 17px; margin-bottom: 7px; padding-right: 80px; }
.disc p { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.disc-until { font-size: 12.5px; color: var(--text-3); }

/* ─── Page header ─── */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0; }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 9px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--brand); }
.page-title { font-size: 34px; }
.page-sub { color: var(--text-2); margin: 9px 0 0; max-width: 62ch; }

/* ─── Filter bar ─── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ─── Contact form ─── */
.form-card {
  background: linear-gradient(135deg, #045f6c, #038ea0); border-radius: var(--r-lg);
  padding: 40px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.form-card h2 { font-size: 28px; margin-bottom: 10px; }
.form-card p { opacity: .9; font-size: 15px; }
.form-box { background: #fff; border-radius: var(--r); padding: 24px; color: var(--text); }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14);
}

/* ─── Footer ─── */
.ftr { background: #10222a; color: #c6d2d7; padding: 46px 0 0; margin-top: 60px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.ftr .logo-txt { color: #fff; }
.ftr-tag { font-size: 13.5px; color: #8a9ba3; margin-top: 12px; max-width: 34ch; }
.ftr h4 { font-size: 14px; color: #fff; margin-bottom: 13px; }
.ftr-links li { padding: 5px 0; }
.ftr-links a { font-size: 13.5px; color: #a9b8be; }
.ftr-links a:hover { color: #fff; }
.ftr-lbl { font-size: 11.5px; color: #6e8188; text-transform: uppercase; letter-spacing: .07em; margin-top: 11px; }
.ftr-val { font-size: 14.5px; color: #fff; font-weight: 600; }
.ftr-soc { display: flex; gap: 9px; margin-top: 16px; }
.ftr-soc a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.09);
  display: grid; place-items: center; color: #c6d2d7;
}
.ftr-soc a:hover { background: var(--brand); color: #fff; }
.ftr-soc svg { width: 18px; height: 18px; }
.ftr-bot {
  margin-top: 36px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7d8f96;
}
.ftr-bot a { color: #7d8f96; margin-left: 16px; }
.ftr-bot a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════
   QR TIZIMI
   ═══════════════════════════════════════════════════ */
.q-wrap { max-width: 560px; margin: 0 auto; padding: 30px 20px 60px; }

.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.q-top { padding: 26px 26px 22px; text-align: center; border-bottom: 1px solid var(--line); }
.q-top--ok { background: linear-gradient(180deg, var(--ok-soft), #fff); }
.q-top--warn { background: linear-gradient(180deg, var(--warn-soft), #fff); }
.q-top--err { background: linear-gradient(180deg, var(--err-soft), #fff); }
.q-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 13px; color: #fff; }
.q-icon svg { width: 30px; height: 30px; }
.q-icon--ok { background: var(--ok); }
.q-icon--warn { background: var(--warn); }
.q-icon--err { background: var(--err); }
.q-status { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.q-status-sub { font-size: 14px; color: var(--text-2); margin: 0; }

.q-sec { padding: 20px 26px; border-bottom: 1px solid var(--line); }
.q-sec:last-child { border-bottom: 0; }
.q-sec-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin-bottom: 13px; }
.q-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.q-row:last-child { border-bottom: 0; }
.q-row dt { color: var(--text-2); flex-shrink: 0; }
.q-row dd { margin: 0; font-weight: 600; text-align: right; }
.q-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.q-badge--ok { background: var(--ok-soft); color: var(--ok); }
.q-badge--err { background: var(--err-soft); color: var(--err); }

.q-doc { display: flex; gap: 14px; align-items: center; }
.q-doc-av { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.q-doc-n { font-weight: 700; font-size: 15.5px; }
.q-doc-j { font-size: 13.5px; color: var(--brand); font-weight: 600; }
.q-doc-e { font-size: 12.5px; color: var(--text-3); }

.q-actions { display: grid; gap: 9px; }

.q-lock { background: var(--surface); }
.q-lock-note { font-size: 13px; color: var(--text-2); margin-bottom: 13px; display: flex; gap: 8px; }
.q-lock-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--text-3); }
.q-lock-form { display: flex; gap: 8px; }
.q-lock-form input { flex: 1; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; font-family: inherit; }
.q-lock-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); }
.q-err { color: var(--err); font-size: 13px; margin-top: 9px; display: none; }
.q-err.on { display: block; }

.q-foot { padding: 16px 26px; background: var(--surface); font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.6; }
.q-foot a { color: var(--brand); }

/* QR search box */
.q-search { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.q-search h2 { font-size: 18px; margin-bottom: 6px; }
.q-search p { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.q-search-form { display: flex; gap: 8px; }
.q-search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; font-family: inherit; letter-spacing: .03em; }
.q-search-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); }
.q-samples { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.q-samples code { background: var(--surface); border: 1px solid var(--line); padding: 3px 8px; border-radius: 7px; font-size: 12.5px; cursor: pointer; display: inline-block; margin: 3px 4px 0 0; }
.q-samples code:hover { border-color: var(--brand); color: var(--brand); }

/* ─── QR generator / demo hujjat ─── */
.gen-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.gen-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 92px; }
.gen-out { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.qr-box { text-align: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.qr-box canvas, .qr-box img, .qr-box svg { margin: 0 auto; display: block; }
.qr-cap { font-size: 12px; color: var(--text-2); margin-top: 10px; }
.qr-code-txt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-top: 6px; }

/* Printable document */
.paper {
  background: #fff; width: 100%; max-width: 760px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 8px; padding: 46px 52px;
  font-size: 14px; line-height: 1.6; box-shadow: var(--shadow-md);
}
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 24px; }
.paper-org { font-size: 19px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.paper-org-sub { font-size: 11.5px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
.paper-no { text-align: right; font-size: 12px; color: var(--text-2); }
.paper-no b { display: block; font-size: 14px; color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.paper h1 { font-size: 19px; text-align: center; margin: 0 0 22px; }
.paper-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line-strong); }
.paper-row dt { width: 190px; color: var(--text-2); flex-shrink: 0; font-size: 13.5px; }
.paper-row dd { margin: 0; font-weight: 600; }
.paper-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.paper-sign-l { font-size: 13px; color: var(--text-2); }
.paper-sign-line { margin-top: 26px; border-bottom: 1px solid var(--text-3); width: 190px; }
.paper-sign-cap { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.paper-qr { text-align: center; flex-shrink: 0; }
.paper-qr img, .paper-qr canvas { width: 104px; height: 104px; }
.paper-qr-cap { font-size: 9.5px; color: var(--text-2); max-width: 118px; line-height: 1.35; margin-top: 5px; }
.paper-qr-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9px; letter-spacing: .04em; color: var(--text-3); margin-top: 2px; }

.note {
  background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0;
  padding: 14px 18px; font-size: 13.5px; color: #04555f; margin: 18px 0;
}
.note b { color: #033f47; }
.note--warn { background: var(--warn-soft); border-color: var(--warn); color: #7a4f07; }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
  .gen-panel { position: static; }
}
@media (max-width: 900px) {
  .menu, .hdr-tel { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .form-card { grid-template-columns: 1fr; padding: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--5, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--2, .grid--3.grid--wide { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 28px; }
  .sec-title, .page-title { font-size: 24px; }
  .hero-side { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .paper { padding: 24px 20px; }
  .paper-row { flex-direction: column; gap: 2px; }
  .paper-row dt { width: auto; }
  .paper-sign { flex-direction: column-reverse; align-items: flex-start; }
  .q-lock-form { flex-direction: column; }
  .q-search-form { flex-direction: column; }
}

/* Print */
@media print {
  .demo-bar, .hdr, .ftr, .no-print { display: none !important; }
  .paper { border: 0; box-shadow: none; max-width: none; padding: 0; }
  body { background: #fff; }
}
