/* TaklifVideo — sayt uslubi (ilova bilan bir oila: shisha yuzalar, pushti→binafsha→ko'k gradient) */
:root {
  --bg: #f6f3fa;
  --surface: #ffffff;
  --surface-2: #faf8fc;
  --ink: #1d1b22;
  --muted: #6c6875;
  --line: #e7e2ee;
  --brand-1: #ff7aa8;
  --brand-2: #9b6bff;
  --brand-3: #4f8dff;
  --brand: #7b55f5;
  --brand-soft: rgba(123, 85, 245, .10);
  --ok: #1f9d55;
  --ok-soft: rgba(31, 157, 85, .10);
  --warn: #c27a00;
  --warn-soft: rgba(194, 122, 0, .10);
  --danger: #d6334a;
  --danger-soft: rgba(214, 51, 74, .09);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(60, 30, 110, .08), 0 2px 8px rgba(60, 30, 110, .05);
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(900px 600px at 0% -10%, #fde4ee 0%, transparent 60%), radial-gradient(900px 700px at 100% 0%, #e4e9ff 0%, transparent 55%);
  background-repeat: no-repeat; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 250, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 226, 238, .7); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; }
.brand.small { font-size: 16px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav > a:not(.btn) { color: var(--ink); opacity: .8; }
@media (max-width: 760px) { .nav > a:not(.btn) { display: none; } .nav { gap: 8px; } .brand span { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  padding: 13px 22px; border-radius: 999px; color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(123, 85, 245, .28); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(123, 85, 245, .34); }
.btn.sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #cfc6dc; }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .plans > .card + .card { margin-top: 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); margin-top: 5px; font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 15px; }
.alert.ok { background: var(--ok-soft); color: #136b3a; }
.alert.err { background: var(--danger-soft); color: #9c1f33; }
.alert.info { background: var(--brand-soft); color: #4a2fb0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: #efedf3; color: var(--muted); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }

/* auth pages */
.auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 64px; }
.auth .card { width: 100%; max-width: 420px; padding: 30px; }
.auth h1 { font-size: 28px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 15px; color: var(--muted); }

/* page */
main { flex: 1; }
.page { padding: 34px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.stat .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }

/* archive cards */
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.proj .thumb { aspect-ratio: 9 / 16; background: linear-gradient(160deg, #f3e8f5, #e6eafc); display: block; width: 100%; object-fit: cover; }
.proj .meta { padding: 10px 12px 12px; font-size: 13.5px; }
.proj .meta b { display: block; font-size: 14.5px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .acts { display: flex; gap: 6px; margin-top: 8px; }
.proj .acts .btn { flex: 1; padding: 7px 10px; font-size: 13px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan.hot { border-color: transparent; box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.plan .tag { position: absolute; top: -11px; left: 20px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .name { font-weight: 700; font-size: 17px; }
.plan .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan ul { padding-left: 18px; margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.plan .btn { margin-top: auto; }

/* landing */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 42px; padding: 12px; background: #17151c; box-shadow: 0 40px 90px rgba(60, 30, 110, .28), inset 0 0 0 2px #2c2833; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; display: block; background: #222; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #17151c; z-index: 2; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }
.section { padding: 56px 0; }
.section .sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: -6px 0 28px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: st; content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step b { display: block; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.feat b { display: block; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin-top: 30px; }
.legal p, .legal li { color: #3c3845; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; margin-top: 30px; background: rgba(255, 255, 255, .4); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; font-size: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.foot-links a { color: var(--ink); opacity: .75; }

/* admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.admin-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-nav a:hover { text-decoration: none; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.bars i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }

/* landing qo'shimchalari */
.btn.lg { padding: 15px 28px; font-size: 17px; }
.phone .phone-ph img { width: 72px; height: 72px; border-radius: 0; background: none; }
.phone-ph { width: 100%; height: 100%; border-radius: 31px; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(160deg, #2a2234, #4a2f5c 55%, #7a3e6e); color: #fff; font-size: 20px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px; background: linear-gradient(120deg, #fff, #f5edff); }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
