:root {
  --bg: #f7f6f3;
  --bg2: #efece6;
  --card: #ffffff;
  --card2: #f4f2ed;
  --border: #e7e3da;
  --text: #191c24;
  --muted: #6d7280;
  --accent: #f97316;
  --accent-btn: #ea580c;
  --accent-soft: #fff1e7;
  --green: #059669;
  --green-soft: #e7f6f0;
  --red: #dc2626;
  --purple: #7c3aed;
  --gold: #d97706;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(25,28,36,.06), 0 4px 14px rgba(25,28,36,.05);
  --shadow-lg: 0 8px 30px rgba(25,28,36,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Sylfaen", "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-btn); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- ჰედერი ---------- */
#topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 24px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: 40px; object-fit: contain; display: block; }
.logo-text { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.logo:hover { text-decoration: none; }
#mainnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
#mainnav a {
  color: var(--muted); padding: 8px 13px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
#mainnav a:hover, #mainnav a.active { color: var(--text); background: var(--card2); text-decoration: none; }
#authbox { display: flex; gap: 8px; align-items: center; }
#burger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
footer {
  background: #191c24; color: #aab0bd;
  padding: 34px 24px; text-align: center; font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
footer .muted { color: #7c8290; }

/* ---------- ღილაკები ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent-btn); color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; font-size: 15px; font-weight: 700;
  font-family: inherit; transition: filter .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(234,88,12,.25);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; box-shadow: 0 4px 14px rgba(234,88,12,.3); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-btn); }
.btn.green { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.25); }
.btn.red { background: transparent; color: var(--red); border: 1.5px solid var(--red); box-shadow: none; }
.btn.purple { background: var(--purple); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,.25); }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.big { padding: 15px 30px; font-size: 17px; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.full { width: 100%; }

/* ---------- ჰერო ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 40px 0 30px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; line-height: 1.12; letter-spacing: -.5px; }
.hero h1 span { color: var(--accent-btn); }
.hero p { color: var(--muted); font-size: 18px; margin: 18px 0 24px; max-width: 520px; line-height: 1.55; }
.hero-img {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; background: var(--card2);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.searchbar {
  display: flex; gap: 0; background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden; max-width: 560px;
}
.searchbar input {
  border: none; background: transparent; padding: 17px 18px; font-size: 16px; flex: 1; min-width: 0;
}
.searchbar input:focus { outline: none; border: none; }
.searchbar select {
  border: none; border-left: 1px solid var(--border); background: transparent;
  padding: 0 14px; font-size: 15px; color: var(--text); max-width: 140px; width: auto;
}
.searchbar .btn { border-radius: 0; padding: 0 26px; font-size: 16px; }

.quick-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  background: var(--card); border: 1px solid var(--border); border-radius: 30px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-btn); text-decoration: none; }

.trust-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.tstat .v { font-size: 26px; font-weight: 900; color: var(--text); }
.tstat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- კატეგორიები ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 26px 0; }
.cat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
}
.cat:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow-lg); }
.cat .ic { font-size: 32px; display: block; margin-bottom: 10px; }

/* ---------- სექციები ---------- */
.section { margin: 52px 0; }
.section h2 { font-size: 28px; letter-spacing: -.3px; }
.section .sub { color: var(--muted); margin: 6px 0 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-btn); font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- პოპულარული სერვისები ---------- */
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pop-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); color: var(--text);
  transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.pop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pop-card .ic { font-size: 30px; }
.pop-card h3 { font-size: 16px; margin: 12px 0 4px; }
.pop-card .from { color: var(--green); font-weight: 800; font-size: 14px; }

/* ---------- გარანტიები ---------- */
.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.gcard .ic { font-size: 30px; }
.gcard h3 { font-size: 17px; margin: 12px 0 6px; }
.gcard p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- მიმოხილვები ---------- */
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tcard .quote { font-size: 15px; line-height: 1.6; }
.tcard .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.tcard .who .av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-btn); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.tcard .who .n { font-weight: 700; font-size: 14px; }
.tcard .who .w { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ბანერი ---------- */
.cta {
  background: linear-gradient(120deg, #191c24, #2a2e3c);
  border-radius: 22px; padding: 48px 34px; text-align: center; color: #fff;
}
.cta h2 { font-size: 30px; }
.cta .sub { color: #aab0bd; margin: 12px 0 24px; }

/* ---------- ბარათები / ბადე ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: box-shadow .15s, transform .15s, border-color .15s;
  box-shadow: var(--shadow);
}
a.card { color: var(--text); display: block; }
a.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; }

/* ---------- ხელოსნის ბარათი ---------- */
.cmaster .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  color: var(--accent-btn); flex-shrink: 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .3px;
}
.badge.vip { background: #fef7e0; color: var(--gold); border: 1px solid var(--gold); }
.badge.vipplus { background: #f1ebfe; color: var(--purple); border: 1px solid var(--purple); }
.badge.top { background: var(--accent-soft); color: var(--accent-btn); border: 1px solid var(--accent); }
.badge.pro { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.stars { color: #f59e0b; font-size: 15px; }

/* ---------- მოთხოვნების ბარათი ---------- */
.req .price { color: var(--green); font-weight: 800; font-size: 18px; }
.tag {
  background: var(--card2); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 11px; font-size: 12px; color: var(--muted);
}
.status { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.status.open { background: var(--green-soft); color: var(--green); }
.status.in_progress { background: #fef7e0; color: var(--gold); }
.status.done { background: #e8f0fe; color: #2563eb; }
.status.closed { background: #fdeaea; color: var(--red); }

/* ---------- ფორმები ---------- */
.form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); }
.form h2 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
textarea { min-height: 100px; resize: vertical; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-cards label {
  background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 13px 8px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text);
}
.radio-cards input { display: none; }
.radio-cards label.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-btn); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  background: var(--card); border: 1.5px solid var(--border); border-radius: 20px;
  padding: 7px 14px; cursor: pointer; font-size: 13px; color: var(--text); font-weight: 500;
}
.checks input { display: none; }
.checks label.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-btn); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input, .filters select { width: auto; min-width: 160px; flex: 1; background: var(--card); }

/* ---------- ტარიფები ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; position: relative; box-shadow: var(--shadow); }
.plan.hot { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .pname { font-size: 20px; font-weight: 800; }
.plan .pprice { font-size: 34px; font-weight: 900; margin: 10px 0 4px; color: var(--accent-btn); }
.plan ul { list-style: none; margin: 16px 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.corner {
  position: absolute; top: -12px; right: 16px; background: var(--accent-btn); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 13px; border-radius: 20px;
}

/* ---------- ჩათი ---------- */
.chatlist .chat {
  display: flex; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px;
  color: var(--text); box-shadow: var(--shadow);
}
.chatlist .chat:hover { border-color: var(--accent); text-decoration: none; }
.chatlist .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent-btn); font-weight: 800; flex-shrink: 0;
}
.chatbox { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 10px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.msg .who { font-size: 11px; opacity: .6; margin-bottom: 3px; }
.msg.me { align-self: flex-end; background: var(--accent-btn); color: #fff; border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msgform { display: flex; gap: 8px; padding: 10px; background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.msgform input { border-radius: 24px; }

/* ---------- მოდალი / ტოსტი ---------- */
#modal-root:empty { display: none; }
#modal-root {
  position: fixed; inset: 0; z-index: 100; background: rgba(25,28,36,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);
}
.modal { background: var(--card); border-radius: 18px; padding: 28px; max-width: 460px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 14px; }
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #191c24; color: #fff;
  padding: 13px 24px; border-radius: 14px; z-index: 200; opacity: 0; transition: all .25s;
  font-weight: 600; max-width: 90vw; text-align: center; pointer-events: none;
  box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }
#toast.ok { background: var(--green); }

/* ---------- ადმინ ცხრილი ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { text-align: left; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--card2); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--bg2); vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat .v { font-size: 28px; font-weight: 900; color: var(--accent-btn); }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { font-size: 48px; display: block; margin-bottom: 12px; }

/* ---------- რესპონსივი ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-img { order: -1; aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  #mainnav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  #mainnav.open { display: flex; }
  #burger { display: block; }
  .msg { max-width: 88%; }
  .radio-cards { grid-template-columns: 1fr; }
  .chatbox { height: calc(100vh - 180px); }
  .searchbar { flex-direction: column; }
  .searchbar select { border-left: none; border-top: 1px solid var(--border); max-width: none; padding: 12px 14px; }
  .searchbar .btn { padding: 14px; }
}
