@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Lato:wght@400;700&display=swap');

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

:root {
  --primary-color: #2C3E50;
  --accent-terra: #E74C3C;
  --accent-orange: #F39C12;
  --accent-green: #27AE60;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --bg-light: #ECF0F1;
  --bg-white: #FFFFFF;
  --border-color: #BDC3C7;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --spacing-base: 16px;
}

html {
  scroll-behavior: smooth;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 16px 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-family: var(--font-body);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-terra);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

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

main {
  margin-top: 80px;
  padding: 0;
}

.section {
  padding: 80px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.section.full-width {
  padding: 80px 32px;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--primary-color);
}

h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 28px;
  font-weight: 700;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-primary);
}

a {
  color: var(--accent-terra);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

button, .btn {
  font-family: var(--font-heading);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-terra);
  color: white;
}

.btn-primary:hover {
  background-color: #d63728;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

.btn-secondary:hover {
  background-color: #1a252f;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--accent-terra);
  border: 2px solid var(--accent-terra);
}

.btn-tertiary:hover {
  background-color: var(--accent-terra);
  color: white;
}

.hero-section {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(231, 76, 60, 0.3) 100%), url('images/hero.jpg') center/cover no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 80px 32px;
  position: relative;
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-section h1 {
  color: white;
  font-size: 64px;
  margin-bottom: 24px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

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

.card {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.1);
  transform: translateY(-4px);
  border-color: var(--accent-terra);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 4px;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin: 40px 0;
}

.feature-list li {
  padding: 16px 0;
  padding-left: 32px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-terra);
  border-radius: 50%;
}

.blockquote {
  border-left: 4px solid var(--accent-terra);
  padding-left: 32px;
  margin: 40px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}

footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 32px 40px;
  margin-top: 80px;
}

footer .container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 16px;
}

footer p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

footer a {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accent-section {
  background-color: var(--bg-light);
  padding: 60px 32px;
  text-align: center;
  margin: 60px 0;
}

.accent-section h2 {
  margin-bottom: 24px;
}

.table-responsive {
  overflow-x: auto;
  margin: 40px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
}

table th {
  background-color: var(--primary-color);
  color: white;
  padding: 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

table tr:hover {
  background-color: var(--bg-light);
}

.accordion {
  margin: 40px 0;
}

.accordion-item {
  background-color: var(--bg-light);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  background-color: var(--bg-light);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background-color: #d5dbdf;
}

.accordion-header.active {
  background-color: var(--primary-color);
  color: white;
}

.accordion-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--bg-white);
}

.accordion-content.show {
  max-height: 1000px;
}

.accordion-content-inner {
  padding: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.disclaimer-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 24px;
  margin: 40px 0;
  border-radius: 4px;
}

.disclaimer-box h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
}

.disclaimer-box p {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
}

.image-block {
  margin: 40px 0;
  border-radius: 4px;
  overflow: hidden;
}

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

.centered-image {
  max-width: 600px;
  margin: 40px auto;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-terra);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 24px 32px;
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cookie-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions button {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.cookie-banner .btn-primary {
  background-color: var(--accent-terra);
}

.cookie-banner .btn-primary:hover {
  background-color: #d63728;
}

.cookie-banner .btn-tertiary {
  color: white;
  border-color: white;
}

.cookie-banner .btn-tertiary:hover {
  background-color: white;
  color: var(--primary-color);
}

.glossary-rail {
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.glossary-rail h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.glossary-rail ul {
  list-style: none;
}

.glossary-rail li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.glossary-rail li:last-child {
  border-bottom: none;
}

.glossary-rail a {
  font-size: 14px;
  color: var(--accent-terra);
}

.blog-summary {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: 4px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-terra);
}

.blog-summary h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.blog-summary p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.read-more {
  color: var(--accent-terra);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent-orange);
  margin-right: -4px;
}

.read-more::after {
  content: ' →';
  transition: margin-left 0.3s ease;
}

.read-more:hover::after {
  margin-left: 4px;
}

.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 60px 32px;
  background-color: var(--bg-light);
  border-radius: 4px;
}

.thank-you-container h2 {
  margin-bottom: 24px;
}

.thank-you-container p {
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--text-secondary);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 40px;
  color: white;
}

@media (max-width: 768px) {
  header {
    padding: 12px 16px;
  }

  header .container {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  nav a {
    font-size: 12px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .section {
    padding: 60px 16px;
  }

  .hero-section {
    min-height: 400px;
    padding: 60px 16px;
    margin-top: 120px;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner.show {
    justify-content: flex-start;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions button {
    width: 100%;
  }
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: white;
  padding: 80px 32px;
  text-align: center;
  margin: 80px 0 0 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 24px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  font-size: 16px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.legal-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal-content ol li {
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.8;
}

.legal-content dl {
  margin: 20px 0;
}

.legal-content dt {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 12px;
}

.legal-content dd {
  margin-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline-item {
  margin-bottom: 40px;
  padding-left: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background-color: var(--accent-terra);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--accent-terra);
}

.timeline-item h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

.matrix-diagram {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 4px;
  margin: 40px 0;
}

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

.matrix-cell {
  background-color: white;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
}

.matrix-cell h4 {
  color: var(--accent-terra);
  margin-bottom: 12px;
}

.matrix-cell p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.article-metadata {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.article-metadata span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.article-nav a {
  font-weight: 600;
  color: var(--accent-terra);
  display: flex;
  align-items: center;
  gap: 8px;
}

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