/* CreditProfit KZ — black showcase styles */

:root {
  --kz-blue: #00AFCA;
  --kz-blue-dark: #008FA8;
  --kz-gold: #FECB00;
  --kz-gold-dark: #E6B800;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --ring: rgba(0, 175, 202, 0.35);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; }

.h-8 { height: 32px; }
.w-auto { width: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--kz-gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--kz-blue) 0%, var(--kz-blue-dark) 100%);
  color: white;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 203, 0, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 720px; }

.hero h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.92;
}

.hero-filters {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  opacity: 0.85;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chips button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.filter-chips button.active {
  background: var(--kz-gold);
  border-color: var(--kz-gold);
  color: var(--text);
}

.filter-result {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.filter-result span {
  font-weight: 800;
  color: var(--kz-gold);
}

@media (min-width: 768px) {
  .hero { padding: 64px 0 52px; }
  .hero h1 { font-size: 40px; }
  .hero-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 24px;
    align-items: end;
  }
  .filter-result { margin-top: 0; text-align: right; }
}

/* Offers section */
.offers-section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.update-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .offers-section { padding: 56px 0; }
}

/* Offer row */
.offer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.offer-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.offer-rank {
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 175, 202, 0.1);
  color: var(--kz-blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.offer-logo {
  grid-column: 1 / -1;
}

.offer-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.offer-meta {
  text-align: center;
  padding: 10px;
  background: #F1F5F9;
  border-radius: 10px;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 4px;
}

.meta-value {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.text-kz-blue { color: var(--kz-blue-dark); }

.offer-tag {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.offer-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kz-gold);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}

.offer-cta:hover {
  background: var(--kz-gold-dark);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .offer-row {
    grid-template-columns: 32px 260px repeat(4, 1fr) 140px;
    gap: 12px;
    padding: 18px 20px;
  }
  .offer-rank { display: grid; }
  .offer-logo { grid-column: auto; }
  .offer-tag { display: none; }
  .offer-cta { grid-column: auto; }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.empty-state p:first-child {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.empty-state p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Info sections */
.info-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.info-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
}

.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--kz-gold);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--kz-blue);
  font-weight: 400;
  margin-left: 12px;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}
