/* Bonzocode.vip – mobile-first, responsive */

:root {
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-footer: #1e3a5f;
  --color-banner-yellow: #fef3c7;
  --color-banner-blue: #dbeafe;
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --max-width: 1200px;
  --header-height: auto;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: #f8fafc;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  display: inline-block;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tagline {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  order: 3;
}

.search-form {
  flex: 1 1 100%;
  order: 2;
  display: flex;
  gap: var(--space-sm);
}

.search-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-form button {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.search-form button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  order: 1;
  margin-left: auto;
}

.nav-icons a {
  font-size: 0.9rem;
}

.menu-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 2px;
  background: var(--color-text);
  box-shadow: 0 -5px 0, 0 5px 0;
}

.nav-links {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: none;
  flex-wrap: wrap;
  gap: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Hero */
.hero {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 60%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero-text h1 {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 var(--space-md);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 36rem;
}

.hero-text ul {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25rem;
}

.hero-text li {
  margin-bottom: var(--space-sm);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-visual {
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section h2 {
  margin: 0 0 var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.section .btn {
  display: block;
  margin: var(--space-lg) auto 0;
  width: fit-content;
}

.grid-full {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
}

.grid-full > p {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-muted);
  font-size: 1rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.card-grid-small .card {
  min-height: 140px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.card-grid-small .card-img img {
  height: 90px;
}

.card-img .card-label {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Banners */
.banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.banner {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.banner-yellow {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.banner-blue {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.banner h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
}

.banner p {
  margin: 0 0 var(--space-md);
}

/* How it works */
.how-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.step-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.how-visual {
  min-height: 150px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.how-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 150px;
}

/* Featured */
.featured {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.featured .badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.featured h2 {
  margin: 0 0 var(--space-lg);
  text-align: left;
}

.featured-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.featured-text ul {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25rem;
}

.featured-text li {
  margin-bottom: var(--space-sm);
}

.featured-visual {
  min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

/* Categories */
.scroll-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow: hidden;
}

.scroll-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.scroll-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.scroll-btn:hover::before {
  border-color: var(--color-bg);
}

.scroll-btn::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0.6rem auto;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

.scroll-next::before {
  transform: rotate(-135deg);
}

.scroll-prev::before {
  transform: rotate(45deg);
}

.category-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.category-strip a {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.category-strip a:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  text-decoration: none;
  transform: scale(1.05);
}

/* Info blocks */
.info-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

.info-block {
  text-align: center;
}

.info-block-img {
  width: 100%;
  max-width: 220px;
  height: 140px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.info-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-block h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
}

.info-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Text blocks (pre-footer) */
.text-blocks {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: var(--space-2xl) var(--space-lg);
  margin: var(--space-xl) 0 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.text-blocks-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.text-block h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
}

.text-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Page main (Privacy, Terms, Contact) */
.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.legal-article h1,
.contact-article h1 {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
}

.legal-article p:first-of-type,
.contact-article p:first-of-type {
  margin: 0 0 var(--space-xl);
}

.legal-article section,
.contact-article section {
  margin-bottom: var(--space-xl);
}

.legal-article h2,
.contact-article h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
}

.legal-article ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.legal-date {
  margin-top: var(--space-2xl);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Contact form */
.contact-form {
  max-width: 400px;
  margin: var(--space-xl) 0;
}

.contact-form label {
  display: block;
  margin: var(--space-md) 0 var(--space-xs);
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: var(--space-lg);
}

.contact-extra {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
  color: var(--color-bg);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.footer a {
  color: var(--color-bg);
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Tablet */
@media (min-width: 600px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .tagline {
    width: auto;
    order: 0;
    margin-right: auto;
  }

  .search-form {
    flex: 1 1 auto;
    max-width: 300px;
    order: 0;
  }

  .nav-icons {
    order: 0;
    margin-left: 0;
  }

  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid.grid-full .card {
    grid-column: span 1;
  }

  .banners {
    grid-template-columns: 1fr 1fr;
  }

  .how-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .how-inner .step-list {
    flex: 1;
  }

  .how-visual {
    flex: 0 0 200px;
    min-height: 120px;
  }

  .featured-inner {
    flex-direction: row;
    align-items: center;
  }

  .featured-text {
    flex: 1;
  }

  .featured-visual {
    flex: 0 0 220px;
    min-height: 140px;
  }

  .info-blocks {
    grid-template-columns: repeat(3, 1fr);
  }

  .text-blocks-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .hero-text {
    flex: 1;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-visual {
    flex: 0 0 380px;
    min-height: 260px;
  }

  .grid-full .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .section h2 {
    font-size: 1.75rem;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .category-strip {
    scroll-behavior: auto;
  }
}
