/* ГАНГАН — GMHB booking: хар-алт тансаг загвар (presentation only) */
:root {
  --black: #131109;
  --black-2: #1e1a11;
  --ink: #221e15;
  --ivory: #faf7f0;
  --paper: #fffdf8;
  --gold: #c9a24b;
  --gold-light: #e8c87a;
  --gold-deep: #8f6f27;
  --line: #e6dcc4;
  --muted: #857c68;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(30, 24, 8, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); margin: 0; background: var(--ivory); color: var(--ink);
       font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: 34px; margin: 18px 0 10px; letter-spacing: .01em; }
h2 { font-size: 25px; margin: 34px 0 14px; }
h3 { font-size: 16px; margin: 22px 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: #b3261e; background: #fdecea; border: 1px solid #f0c4c0;
         border-radius: 10px; padding: 10px 14px; }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between;
         align-items: center; padding: 10px 20px; background: var(--black); color: var(--ivory);
         flex-wrap: wrap; gap: 6px 14px; border-bottom: 2px solid var(--gold); }
header a { color: var(--gold-light); text-decoration: none; margin-right: 14px; font-size: 15px; }
header a:hover { color: #fff; }
header .logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif);
               font-weight: 700; font-size: 24px; letter-spacing: .28em; color: var(--ivory);
               margin-right: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center;
             width: 34px; height: 34px; border: 1.5px solid var(--gold); border-radius: 50%;
             color: var(--gold-light); font-size: 19px; letter-spacing: 0;
             box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 4.5px rgba(201,162,75,.45); }
header nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
header nav span { color: var(--ivory); margin-right: 10px; }
header .linkbtn { color: var(--gold-light); }

/* ---------- Layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 8px 16px 56px; }
main.admin { max-width: 1140px; }
main:has(.sticky-cta) { padding-bottom: 128px; }
footer { text-align: center; color: #b3a888; font-size: 13px; padding: 26px 20px;
         background: var(--black); border-top: 2px solid var(--gold); margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--black); color: #f3ead8; padding: 11px 22px;
       border-radius: 999px; text-decoration: none; border: 1px solid var(--black);
       cursor: pointer; font-size: 15px; font-weight: 600; font-family: var(--sans);
       min-height: 44px; line-height: 1.35; text-align: center; }
.btn:hover { background: var(--black-2); }
.btn-gold { background: linear-gradient(180deg, #dcbc6a, var(--gold)); color: #221a05;
            border-color: #a8832f; }
.btn-gold:hover { background: linear-gradient(180deg, #e8c87a, #d4af5a); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.linkbtn { background: none; border: 0; color: var(--gold-deep); cursor: pointer;
           font-size: 15px; padding: 0; font-family: var(--sans); }

/* ---------- Hero (нүүр) ---------- */
.hero { position: relative; overflow: hidden; text-align: center; color: var(--ivory);
        margin: 0 -16px 22px; padding: 52px 20px 46px;
        background:
          radial-gradient(640px 300px at 50% -90px, rgba(201,162,75,.30), transparent 70%),
          linear-gradient(180deg, #1a1710, #100e09); }
.hero::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,162,75,.35);
               pointer-events: none; }
.hero-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px;
             height: 64px; border: 1.5px solid var(--gold); border-radius: 50%;
             color: var(--gold-light); font-family: var(--serif); font-size: 36px;
             box-shadow: inset 0 0 0 5px #14110a, inset 0 0 0 6.5px rgba(201,162,75,.45);
             margin-bottom: 14px; }
.hero-brand { font-family: var(--serif); font-weight: 700; font-size: 58px; letter-spacing: .32em;
              margin: 0 0 6px; padding-left: .32em; color: var(--gold-light);
              background: linear-gradient(180deg, #f4e2ac, var(--gold));
              -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-rule { width: 120px; height: 1px; margin: 12px auto 14px;
             background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-sub { font-size: 18px; color: #efe7d2; margin: 0; }

/* ---------- Мэргэжилтний картууд ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
        text-decoration: none; color: inherit; overflow: hidden; display: flex;
        flex-direction: column; box-shadow: 0 2px 10px rgba(30,24,8,.05);
        transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-cover { position: relative; display: flex; align-items: flex-end; padding: 18px 16px 14px;
              min-height: 96px;
              background:
                radial-gradient(420px 190px at 85% -60px, rgba(201,162,75,.35), transparent 70%),
                linear-gradient(135deg, #221e15, #100e09); }
.card-cover .badge { position: absolute; top: 12px; right: 12px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h2 { margin: 0 0 2px; font-size: 24px; }
.card-body p { margin: 0; }
.card-biz { font-weight: 600; font-size: 15px; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between;
             align-items: center; color: var(--muted); font-size: 14px; }
.card-arrow { color: var(--gold-deep); font-size: 20px; font-weight: 700; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none;
          width: 56px; height: 56px; border-radius: 50%;
          background: linear-gradient(145deg, #2c2617, #14110a); color: var(--gold-light);
          border: 1.5px solid var(--gold); font-family: var(--serif); font-weight: 700;
          font-size: 22px; letter-spacing: .04em; }
.avatar-lg { width: 88px; height: 88px; font-size: 34px; }
.badge { color: #221a05; background: linear-gradient(180deg, #e8c87a, var(--gold));
         font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12.5px; color: var(--gold-deep); background: #f7efdb;
        border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ---------- Баннерууд ---------- */
.tryon-banner { background: linear-gradient(135deg, #221e15, #100e09); color: #f3ead8;
                border: 1px solid var(--gold); border-radius: var(--radius);
                padding: 18px; margin: 18px 0; line-height: 1.55; }
.tryon-banner a { color: var(--gold-light); }
.tryon-banner .btn { margin-left: 8px; background: linear-gradient(180deg, #dcbc6a, var(--gold));
                     color: #221a05; border-color: #a8832f; }
.howto { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 8px 20px 14px; margin: 18px 0; }
.howto h2 { margin-top: 14px; font-size: 21px; }
.howto ol { list-style: none; counter-reset: step; padding-left: 0; margin: 8px 0; }
.howto li { counter-increment: step; margin: 10px 0; line-height: 1.5; padding-left: 44px;
            position: relative; min-height: 30px; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: -2px;
                    width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold);
                    color: var(--gold-deep); font-family: var(--serif); font-weight: 700;
                    font-size: 17px; display: flex; align-items: center; justify-content: center; }

/* ---------- Профайл ---------- */
.pro-cover { text-align: center; margin: 0 -16px 20px; padding: 38px 20px 30px; color: var(--ivory);
             background:
               radial-gradient(560px 260px at 50% -70px, rgba(201,162,75,.30), transparent 70%),
               linear-gradient(180deg, #1a1710, #100e09);
             border-bottom: 2px solid var(--gold); }
.pro-cover h1 { color: #fff; font-size: 40px; margin: 14px 0 4px; }
.pro-title { color: var(--gold-light); font-size: 16px; margin: 0 0 4px; }
.pro-title:empty { display: none; }
.pro-addr { color: #cfc4a4; font-size: 14px; margin: 0; }
.pro-bio { font-size: 16.5px; line-height: 1.6; }
.pro-bio:empty { display: none; }
.hours { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 6px 18px; }
.hours-row { display: flex; justify-content: space-between; padding: 9px 2px;
             border-bottom: 1px solid #f0e8d5; font-size: 15px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row.today { font-weight: 700; color: var(--gold-deep); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
              background: rgba(19,17,9,.94); backdrop-filter: blur(8px);
              border-top: 1.5px solid var(--gold);
              padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sticky-inner { max-width: 880px; margin: 0 auto; display: flex; justify-content: space-between;
                align-items: center; gap: 12px; color: var(--ivory); }
.sticky-name { font-family: var(--serif); font-size: 19px; font-weight: 600;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Үйлчилгээний мөрүүд ---------- */
.service { display: flex; justify-content: space-between; align-items: center; gap: 12px;
           background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
           padding: 16px 18px; margin-bottom: 10px; flex-wrap: wrap; box-shadow: 0 1px 6px rgba(30,24,8,.04); }
.service strong { font-size: 16.5px; }
.service .price { font-family: var(--serif); font-weight: 700; font-size: 22px;
                  color: var(--gold-deep); white-space: nowrap; }

/* ---------- Захиалгын урсгал ---------- */
.step { display: inline-block; color: var(--gold-deep); background: #f7efdb;
        border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
        font-size: 13.5px; font-weight: 600; margin: 14px 0 2px; }
.book-head { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
             border-radius: 10px; padding: 12px 16px; font-size: 15.5px; }
.slots { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.slot { background: var(--paper); border: 1.5px solid var(--gold); color: var(--ink);
        border-radius: 10px; padding: 11px 16px; text-decoration: none; font-weight: 600;
        font-size: 15.5px; min-height: 44px; display: inline-flex; align-items: center; }
.slot:hover { background: #f3ead8; }
table.kv { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
           border-collapse: separate; border-spacing: 0; width: 100%; overflow: hidden; }
table.kv td { padding: 11px 16px; vertical-align: top; border-bottom: 1px solid #f0e8d5; }
table.kv tr:last-child td { border-bottom: 0; }
table.kv td:first-child { color: var(--muted); width: 38%; }
.qpay-box { background: #fff8e6; border: 1.5px solid var(--gold); border-radius: var(--radius);
            padding: 16px 18px; margin: 16px 0; line-height: 1.55; }

/* ---------- Форм ---------- */
label { display: block; margin: 14px 0; font-size: 15px; font-weight: 500; }
input, select, textarea { padding: 11px 12px; border: 1px solid #cfc7b8; border-radius: 10px;
        font-size: 16px; max-width: 100%; font-family: var(--sans); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px;
        border-color: var(--gold); }
label input, label select, label textarea { width: 100%; margin-top: 6px; }
label input[type="checkbox"] { width: auto; margin-top: 0; }
form .btn { margin-top: 10px; }
form.inline { display: inline; }
form.inline button, .svc-edit button { cursor: pointer; background: var(--paper);
        border: 1px solid var(--gold); color: var(--ink); border-radius: 8px;
        padding: 7px 12px; font-size: 14px; font-family: var(--sans); min-height: 36px; }
form.inline button:hover, .svc-edit button:hover { background: #f3ead8; }
.svc-edit { display: inline; }
.svc-edit label { display: inline; margin: 0 4px; font-weight: 400; }
.svc-edit input { margin: 2px; }

/* ---------- Нэвтрэх / бүртгэл ---------- */
.auth-wrap { max-width: 440px; margin: 26px auto 0; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold);
             border-radius: var(--radius); padding: 26px 24px 20px; box-shadow: var(--shadow); }
.auth-card h1 { margin-top: 0; text-align: center; }
.auth-card .btn { width: 100%; }

/* ---------- Админ ---------- */
main.admin h1 { font-size: 29px; }
main.admin h2 { font-size: 22px; }
table.list { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper);
             border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.list th, table.list td { border-bottom: 1px solid #f0e8d5; padding: 10px;
             text-align: left; vertical-align: top; font-size: 14.5px; }
table.list th { background: #f7efdb; font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
.stub-banner { background: #fdecea; color: #7a1f1a; padding: 10px 16px; font-size: 14px;
               text-align: center; }

/* ---------- Жижиг дэлгэц ---------- */
@media (max-width: 720px) {
  h1 { font-size: 29px; }
  .hero { padding: 42px 16px 38px; }
  .hero-brand { font-size: 44px; }
  .pro-cover h1 { font-size: 33px; }
  header { padding: 10px 14px; }
  header a { margin-right: 10px; font-size: 14px; }
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .service .btn { flex: 1; }
  .auth-card { padding: 22px 18px 16px; }
}
