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

:root {
  --bg: #f5f4f0;
  --white: #ffffff;
  --dark: #1a1a2e;
  --green: #16a34a;
  --border: #e2e2e2;
  --muted: #888;
  --text: #2d2d2d;
}

body {
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

/* NAV */
nav {
  background: var(--dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: #4ade80; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: #fff; }

/* HEADER */
.page-header {
  background: var(--dark);
  padding: 40px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* MAIN CONTENT */
main {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 16px 80px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 14px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 8px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 18px 0 6px;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

footer p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* BLOG GRID */
.blog-grid {
  display: grid;
  gap: 16px;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blog-tag {
  display: inline-block;
  background: #f0fdf4;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ARTICLE */
.article-content h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-content h3 { font-size: 1rem; margin: 20px 0 8px; }
.article-content p { font-size: 0.93rem; line-height: 1.8; margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 16px; }
.article-content li { font-size: 0.93rem; line-height: 1.8; color: #555; margin-bottom: 6px; }

.article-header {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}

th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }

/* CONTACT FORM */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dark);
  background: #fff;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-submit:hover { background: #2d2d50; transform: translateY(-1px); }

/* INPUT RANGE */
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  main { padding: 0 12px 60px; }
}
