/* ───────────────────────── y2kradar — design system ───────────────────────── */
:root {
  --lime: #c6ff00;
  --lime-700: #9bcc00;
  --lime-soft: #eefcb8;
  --ink: #0b0b0c;
  --ink-2: #23241f;
  --paper: #ffffff;
  --mist: #f4f5ef;
  --mist-2: #eceee4;
  --line: #e3e5da;
  --muted: #74786c;
  --danger: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 12px 30px -18px rgba(11, 11, 12, .25);
  --maxw: 1200px;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────────────────────── ticker ───────────────────────── */
.ticker {
  background: var(--ink);
  color: var(--lime);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 0;
}
.ticker__track { display: inline-block; animation: marquee 22s linear infinite; }
.ticker__track span { padding: 0 18px; }
.ticker__track span::after { content: "◆"; color: #fff; margin-left: 36px; opacity: .5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───────────────────────── header ───────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.logo__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.logo b { color: var(--ink); }
.logo span { color: var(--lime-700); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--lime-700); }
.nav__admin { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.nav__admin:hover { background: var(--ink); color: #fff; }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langsw button { border: none; background: transparent; padding: 7px 11px; font-size: 12px; font-weight: 600; font-family: var(--mono); letter-spacing: .06em; color: var(--muted); cursor: pointer; transition: background .14s, color .14s; }
.langsw button.is-active { background: var(--ink); color: #fff; }

/* ───────────────────────── hero ───────────────────────── */
.hero { padding: 64px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: stretch; }
.hero__title { font-size: clamp(40px, 6vw, 78px); line-height: .98; margin: 14px 0 18px; font-weight: 700; }
.hero__title em { font-style: normal; background: var(--lime); padding: 0 .12em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__sub { font-size: 17px; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero__panel {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
  position: relative; overflow: hidden;
}
.hero__panel h3 { font-size: 22px; margin: 0 0 6px; }
.hero__panel p { color: #b9bcb2; font-size: 14px; margin: 0; }
.hero__panel .blob { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--lime), transparent 70%); opacity: .55; }
.hero__stats { display: flex; gap: 26px; margin-top: 22px; }
.hero__stats div b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 26px; }
.hero__stats div span { font-size: 12px; color: #9a9d93; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; padding: 13px 22px;
  font-weight: 600; font-size: 14.5px; transition: transform .12s ease, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 8px 22px -10px var(--lime-700); }
.btn--lime:hover { background: #d4ff3a; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: 13px; }

/* ───────────────────────── catalog ───────────────────────── */
.catalog { padding: 34px 0 70px; }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.catalog__head h2 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 0; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; transition: all .14s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4d7cb; }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--mist); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 14px, var(--mist-2) 14px, var(--mist-2) 28px); }
.card__cat { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card__dots { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 5px; }
.card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.card__sizes { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.card__price { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; }
.card__price span { font-size: 13px; color: var(--muted); font-weight: 500; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; font-family: "Space Grotesk", sans-serif; }

/* ───────────────────────── modal ───────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11, 11, 12, .5); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; width: min(560px, calc(100% - 32px));
  margin: 7vh auto 0; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); overflow: hidden; max-height: 86vh; display: flex; flex-direction: column;
}
.modal__head { display: flex; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.modal__thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--mist); flex: none; }
.modal__head h3 { margin: 0; font-size: 18px; }
.modal__head .price { font-family: "Space Grotesk", sans-serif; font-weight: 700; margin-top: 2px; }
.modal__close { margin-left: auto; align-self: flex-start; border: none; background: var(--mist); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: var(--ink-2); }
.modal__close:hover { background: var(--mist-2); }
.modal__body { padding: 18px; overflow: auto; }
.modal__ok { text-align: center; padding: 36px 20px; }
.modal__ok .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 14px; font-size: 30px; }

/* ───────────────────────── forms ───────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 15px; font-family: inherit; background: var(--paper); color: var(--ink); transition: border-color .14s, box-shadow .14s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--lime-700); box-shadow: 0 0 0 3px var(--lime-soft); }
.textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formerr { color: var(--danger); font-size: 13px; margin: 4px 0 10px; min-height: 1px; }

/* ───────────────────────── footer ───────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--mist); padding: 40px 0; margin-top: 30px; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer small { color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* ───────────────────────── admin ───────────────────────── */
.admin-bg { background: var(--mist); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(400px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.login-card .logo { justify-content: center; margin-bottom: 6px; font-size: 24px; }
.login-card p { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 14px; }

.adminbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.adminbar__row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.adminbar .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 4px 9px; border-radius: 999px; margin-left: 8px; }

.admin-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; padding: 28px 0 70px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel__head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel__head h2 { margin: 0; font-size: 18px; }
.panel__body { padding: 20px; }

.uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upcell { position: relative; aspect-ratio: 1; border: 1px dashed var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--mist); display: grid; place-items: center; cursor: pointer; }
.upcell img { width: 100%; height: 100%; object-fit: cover; }
.upcell .plus { color: var(--muted); font-size: 26px; }
.upcell input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upcell .del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(11,11,12,.78); color: #fff; border: none; font-size: 15px; line-height: 1; display: grid; place-items: center; }

.tablewrap { overflow: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:hover td { background: var(--mist); }
.ptable .thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--mist); }
.ptable .thumb.ph { display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.ptable .nm { font-weight: 600; }
.ptable .br { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.tactions { display: flex; gap: 8px; }
.iconbtn { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn--danger:hover { border-color: var(--danger); color: var(--danger); }

.tabs { display: flex; gap: 6px; }
.tab { border: none; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tab.is-active { background: var(--ink); color: #fff; }

.order-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .top { display: flex; justify-content: space-between; gap: 10px; }
.order-item .nm { font-weight: 600; }
.order-item .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.order-item .time { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { min-height: 160px; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a:not(.nav__admin) { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 18px; }
}
