:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --accent: #e8b923;
  --bg: #f4f6f3;
  --text: #1e1e1e;
  --muted: #5a5a5a;
  --white: #ffffff;
  --border: #dde3d8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Hero */
.hero {
  background: linear-gradient(rgba(13, 61, 24, 0.85), rgba(26, 95, 42, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff15' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.92;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Article page */
.article-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.article-meta {
  opacity: 0.8;
  font-size: 0.9rem;
}

.article-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.article-content h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin: 2rem 0 1rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.sponsored-box {
  background: #fff9e6;
  border: 1px solid #f0d878;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
}

.sponsored-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.sponsored-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sponsored-links a {
  font-weight: 600;
}

/* Legal pages */
.legal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 1.5rem;
}

/* Contact form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--white);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.9rem;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-accept {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
