/* ===== Umumiy ===== */
:root {
  --bg: #f0f2f5;          /* och kulrang fon */
  --card: #ffffff;
  --cell: #f4f5f7;
  --border: #e4e7eb;
  --text: #1c2330;
  --muted: #8a93a2;
  --blue: #0d6ac4;        /* asosiy aksent (logo, havolalar) */
  --blue-dark: #0a58a3;
  --green: #2fa84f;       /* "Olish" tugmasi */
  --green-dark: #268a41;
  --red: #e0433d;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header ===== */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover {
  color: var(--blue);
}

/* ===== Sahifa: kontent + yon panel ===== */
.page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }
}

/* ===== Breadcrumbs va sarlavha ===== */
.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

h1 {
  font-size: 27px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.intro {
  font-size: 15px;
  margin-bottom: 20px;
}

.intro a {
  color: var(--blue);
}

.intro a:hover {
  text-decoration: underline;
}

/* ===== Chiplar ===== */
.chips-wr h2,
.list-title {
  font-size: 21px;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: var(--blue);
}

.chip.active {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== Bukmeker kartochkasi ===== */
.bk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bk-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.07);
}

.bk-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
}

.bk-rank {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.bk-logo-wr {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 150px;
  min-width: 110px;
}

.bk-logo {
  max-width: 140px;
  max-height: 36px;
  object-fit: contain;
}

.bk-logo-letter {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  background: var(--cell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.bk-logo-name {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-cell {
  flex: 1;
  text-align: center;
  border-left: 1px solid var(--cell);
}

.bk-cell-value {
  font-weight: 800;
  font-size: 16px;
}

.bk-cell-title {
  color: var(--muted);
  font-size: 12.5px;
}

.bk-actions {
  display: flex;
  gap: 8px;
  padding-left: 10px;
}

/* Tugmalar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  padding: 10px 18px;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-review {
  background: var(--cell);
  color: var(--text);
}

.btn-review:hover {
  background: var(--border);
}

.btn-site {
  background: var(--green);
  color: #fff;
}

.btn-site:hover {
  background: var(--green-dark);
}

/* Promo qatori */
.bk-promo-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--cell);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.bk-promo-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-more {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.bk-more:hover {
  color: var(--blue);
}

.bk-more i {
  font-style: normal;
  font-size: 11px;
}

/* Ochiluvchi qism */
.bk-details {
  display: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--cell);
}

.bk-details.open {
  display: block;
}

.bk-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cell);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.bk-promo-code {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
}

.btn-copy {
  background: var(--card);
  color: var(--blue);
  border: 1px solid var(--border);
}

.bk-meta {
  margin-bottom: 10px;
}

.bk-rating-line {
  font-size: 14px;
  color: var(--muted);
}

.bk-rating-line b {
  font-size: 15px;
  padding: 2px 9px;
  border-radius: 8px;
  margin-left: 4px;
}

.bk-rating-line b.good { background: #e2f6ec; color: #0b9d5b; }
.bk-rating-line b.mid  { background: #fdf3dc; color: #d19a1e; }
.bk-rating-line b.low  { background: #fde5e4; color: #d64541; }

.bk-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.bk-pc-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.bk-pc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.bk-pc-item span {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.bk-pc-item.plus span {
  background: #e2f6ec;
  color: #0b9d5b;
}

.bk-pc-item.minus span {
  background: var(--cell);
  color: var(--muted);
}

.bk-desc {
  color: var(--muted);
  font-size: 14px;
}

.empty {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

/* ===== Yon panel ===== */
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.07);
  padding: 16px;
  margin-bottom: 18px;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.side-card h3 {
  font-size: 18px;
}

.btn-reset {
  background: var(--cell);
  border: none;
  border-radius: 9px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.btn-reset:hover {
  background: var(--border);
}

.side-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.side-title {
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.side-links {
  display: flex;
  flex-direction: column;
}

.side-links button,
.side-links a {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--cell);
  padding: 9px 2px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-links button:last-child,
.side-links a:last-child {
  border-bottom: none;
}

.side-links button:hover,
.side-links a:hover,
.side-links button.active {
  color: var(--blue);
}

.side-links.plain {
  margin-top: 10px;
}

.side-links a span {
  color: var(--blue);
  font-size: 15px;
}

/* ===== SEO va FAQ ===== */
.seo-block,
.faq {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.seo-block h2,
.faq h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.seo-block p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.faq details {
  border-bottom: 1px solid var(--cell);
  padding: 10px 0;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq details p {
  color: var(--muted);
  font-size: 14px;
  padding-top: 8px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer strong {
  color: var(--red);
}

/* ===== Mobil ===== */
@media (max-width: 640px) {
  h1 {
    font-size: 21px;
  }

  .nav {
    display: none;
  }

  .bk-top {
    flex-wrap: wrap;
  }

  .bk-logo-wr {
    flex: 1;
  }

  .bk-cell {
    min-width: 40%;
    border-left: none;
    padding: 6px 0;
  }

  .bk-actions {
    width: 100%;
    padding-left: 0;
  }

  .bk-actions .btn {
    flex: 1;
  }

  .bk-promo-line span {
    white-space: normal;
  }

  .bk-pros-cons {
    grid-template-columns: 1fr;
  }
}
