* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fb;
  color: #0f172a;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10b981, #0284c7);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.brand p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}

.menu {
  display: flex;
  gap: 24px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
}

.menu a:hover {
  color: #059669;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-block;
}

.dark {
  background: #020617;
  color: white;
}

.primary {
  background: #059669;
  color: white;
  width: 100%;
  padding: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.35), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.35), transparent 24%),
    #020617;
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 72px 0;
  align-items: center;
}

.pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
}

.hero h2 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
  margin: 22px 0 0;
  letter-spacing: -2px;
  max-width: 820px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
  max-width: 720px;
}

.search-card {
  background: white;
  color: #0f172a;
  border-radius: 28px;
  padding: 16px;
  margin-top: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 12px;
}

.search-full {
  grid-column: 1 / -1;
}

.search-full label,
.filter-box label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  margin: 0 0 6px 4px;
}

#searchInput {
  width: 100%;
  height: 58px;
  font-size: 17px;
  border: 2px solid #10b981;
  background: #f8fafc;
}

.filter-box select {
  width: 100%;
}

.search-card input,
.search-card select,
.form-card input,
.form-card select,
.admin-login input,
.submission-card input,
.submission-card select {
  border: 0;
  background: #f1f5f9;
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  font-weight: 700;
  min-height: 48px;
}

.search-card input:focus,
.form-card input:focus,
.form-card select:focus {
  outline: 2px solid #10b981;
}

.search-card button {
  border: 0;
  background: #059669;
  color: white;
  border-radius: 18px;
  padding: 15px 22px;
  font-weight: 900;
  cursor: pointer;
  min-height: 48px;
  align-self: end;
}

.search-card button:hover,
.primary:hover {
  background: #047857;
}

.suggestions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.suggestions button {
  background: #ecfdf5;
  color: #047857;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  min-height: auto;
}

.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.example-card {
  background: white;
  color: #0f172a;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.green-title {
  color: #059669;
  font-weight: 900;
  margin: 0 0 8px;
}

.example-card h3 {
  font-size: 28px;
  margin: 0;
}

.example-card small {
  color: #64748b;
}

.price-row {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.price-row.best {
  background: #ecfdf5;
  outline: 2px solid #a7f3d0;
}

.price-row span,
.price small {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.price {
  color: #047857;
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.saving {
  margin-top: 16px;
  background: #fefce8;
  color: #854d0e;
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
}

.section {
  padding: 64px 0;
}

.white {
  background: white;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0;
  letter-spacing: -1px;
}

.section-head p {
  color: #64748b;
  margin-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.product-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, white, #f8fafc);
  border-bottom: 1px solid #e2e8f0;
}

.product-title {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 44px;
  flex: 0 0 auto;
}

.product-top h3 {
  margin: 0;
  font-size: 24px;
}

.product-meta {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.best-summary {
  text-align: right;
}

.best-summary small {
  color: #64748b;
  display: block;
}

.best-price {
  color: #047857;
  font-size: 38px;
  font-weight: 900;
  margin-top: 3px;
}

.product-price-row {
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.product-price-row:first-child {
  background: #ecfdf5;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.badge {
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  display: inline-block;
}

.badge.green {
  background: #d1fae5;
  color: #047857;
}

.badge.orange {
  background: #ffedd5;
  color: #c2410c;
}

.badge.yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge.dark-badge {
  background: #020617;
  color: white;
}

.contribution-grid,
.telegram-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.info-list div {
  background: #f1f5f9;
  border-radius: 18px;
  padding: 16px;
  font-weight: 800;
}

.form-card,
.telegram-box,
.admin-login {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.form-card h3 {
  font-size: 28px;
  margin: 0;
}

.form-card p {
  color: #64748b;
  margin-top: 0;
}

.upload {
  background: #ecfdf5;
  border: 2px dashed #86efac;
  color: #047857;
  text-align: center;
  border-radius: 22px;
  padding: 28px;
  font-weight: 900;
  cursor: pointer;
}

.upload span {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.upload input {
  display: none;
}

.form-message {
  display: none;
  background: #d1fae5;
  color: #047857;
  border-radius: 18px;
  padding: 14px;
  font-weight: 900;
}

.telegram-box pre {
  background: #020617;
  color: white;
  padding: 16px;
  border-radius: 18px;
  white-space: pre-wrap;
}

.admin-list {
  display: grid;
  gap: 18px;
}

.submission-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.submission-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.submission-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  background: #f1f5f9;
}

.submission-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.submission-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.submission-actions button {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.approve {
  background: #059669;
  color: white;
}

.reject {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .hero-grid,
  .contribution-grid,
  .telegram-card {
    grid-template-columns: 1fr;
  }

  .search-card {
    grid-template-columns: 1fr;
  }

  .search-full {
    grid-column: 1;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .brand h1 {
    font-size: 15px;
  }

  .nav .btn {
    display: none;
  }

  .product-top,
  .product-price-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .best-summary {
    text-align: left;
  }

  .submission-grid,
  .submission-fields {
    grid-template-columns: 1fr;
  }
}