:root {
  --primary: #0f4c5c;
  --primary-light: #1a6b7d;
  --accent: #f4a261;
  --accent-hover: #e8934a;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c6370;
  --border: #e2e6ea;
  --success: #2a9d8f;
  --shadow: 0 4px 24px rgba(15, 76, 92, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5f6f 50%, #2d7a8a 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: rgba(244, 162, 97, 0.15);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.category-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Articles */
.articles-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-panel {
  display: none;
}

.category-panel.active {
  display: block;
}

.category-panel > h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.category-panel > p.subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.article-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s;
}

.article-header:hover {
  background: rgba(15, 76, 92, 0.04);
}

.article-header h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-toggle {
  font-size: 1.25rem;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.article-card.open .article-toggle {
  transform: rotate(180deg);
}

.article-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.article-card.open .article-body {
  display: block;
}

.article-body .summary {
  background: rgba(42, 157, 143, 0.08);
  border-left: 4px solid var(--success);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.article-body .summary h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.article-body .summary ul {
  padding-left: 1.25rem;
}

.article-body .summary li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.article-body h5 {
  font-size: 1rem;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(15, 76, 92, 0.08);
  color: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Recent updates */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.update-card:hover {
  box-shadow: var(--shadow);
}

.update-card .date {
  font-size: 0.8rem;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.update-card h4 {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.4;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(15, 76, 92, 0.03);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question span.icon {
  transform: rotate(45deg);
}

.faq-question span.icon {
  font-size: 1.25rem;
  color: var(--primary-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-info p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-success {
  display: none;
  background: rgba(42, 157, 143, 0.12);
  color: var(--success);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
}

/* Legal sections */
.legal-section {
  background: var(--surface);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #0a3540;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
}

.cookie-inner p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-cookie-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-cookie-accept {
  background: var(--accent);
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
