:root {
  --primary: #0d6e4f;
  --primary-dark: #0a5a40;
  --accent: #00c2a8;
  --accent-light: #e6f9f6;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e0e0e0;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

.top-price-bar {
  background: linear-gradient(135deg, #0d6e4f 0%, #00c2a8 100%);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.top-price-bar strong {
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.logo img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.header-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-light);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}
.header-price strong {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.hero {
  background: linear-gradient(135deg, #0d6e4f 0%, #00c2a8 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.update-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  margin: -3rem auto 2rem;
  position: relative;
  z-index: 10;
  max-width: 1100px;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
  border-top: 4px solid var(--accent);
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat-card .change {
  color: #0d6e4f;
  font-weight: 600;
  font-size: 0.9rem;
}

section h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-body {
  padding: 1.25rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

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

.filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.card.hidden {
  display: none;
}
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary-dark);
}

tr:hover {
  background: var(--accent-light);
}

footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

footer a {
  color: var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.visit-counter {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
}
.visit-counter #visit-counter {
  color: var(--accent);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }
  nav li {
    width: 100%;
  }
  nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  nav a.active {
    background: var(--accent-light);
  }
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .top-price-bar {
    font-size: 13px;
    padding: 10px 12px;
  }
  .stats {
    margin: -1.5rem 1rem 2rem;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 1rem 0.75rem;
  }
  .stat-card .value {
    font-size: 1.5rem;
  }
  .stat-card .label {
    font-size: 0.8rem;
  }
  .container {
    padding: 1.25rem 1rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .calc-card {
    padding: 0.75rem 0.75rem;
    margin: 0.5rem 0;
  }
  .form-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .form-group {
    flex: 1 1 100%;
  }
  .form-group label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }
  .form-group input,
  .form-group select {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
  }
  .calc-card .btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
  }
  .result {
    padding: 0.85rem;
    margin-top: 0.75rem;
    font-size: 0.95rem;
  }
  table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }
  th, td {
    padding: 0.6rem 0.5rem;
  }
  section h2 {
    font-size: 1.4rem;
  }
}

/* Article styles */
.article-header { margin-bottom: 2rem; }
.article-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 { margin-top: 2rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Calculator styles */
.calc-card {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.form-group {
  flex: 1 1 180px;
  margin-bottom: 0.75rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 150, 100, 0.15);
}
.result {
  background: var(--accent-light);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.5;
}
.result strong {
  color: var(--primary);
}
.note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}
