:root {
  --primary: #2c5f4f;
  --secondary: #7ba591;
  --accent: #e8a87c;
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --border: #e0e0e0;
  --error: #d32f2f;
  --success: #388e3c;
  
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  
  --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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.brand:hover {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

nav a:hover {
  color: var(--primary);
  background: rgba(44, 95, 79, 0.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

main {
  min-height: 60vh;
}

section {
  padding: var(--space-xl) 0;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--surface);
  text-align: center;
  padding: var(--space-xl) 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto var(--space-md);
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #d99768;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--bg);
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.text-center {
  text-align: center;
}

.bg-light {
  background: var(--surface);
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section p {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.content-section ul, .content-section ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.content-section li {
  margin-bottom: var(--space-xs);
}

form {
  max-width: 600px;
  margin: var(--space-md) auto;
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

input.error, textarea.error {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.error-message.show {
  display: block;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

footer {
  background: var(--primary);
  color: var(--surface);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-section h3 {
  color: var(--surface);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  z-index: 2000;
  display: none;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: var(--space-md);
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--surface);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.thank-you-content {
  text-align: center;
  padding: var(--space-xl) 0;
}

.thank-you-content h1 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.checkmark {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: var(--space-md);
}

.disclaimer {
  background: #fff9e6;
  border-left: 4px solid var(--accent);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--radius-sm);
}

.disclaimer p {
  color: var(--text);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  nav.active {
    max-height: 500px;
  }
  
  nav ul {
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: var(--space-sm);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-buttons .btn {
    flex: 1;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  section {
    padding: var(--space-md) 0;
  }
  
  .hero {
    padding: var(--space-md) 0;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .grid {
    gap: var(--space-sm);
  }
}
