/* Bram Vermeulen — Полностью уникальный дизайн | Зелёная палитра (sage / mint / forest) | Sticky Side Navigation + Centered Minimalist hybrid */
:root {
  --primary: #166534;
  --accent: #4ADE80;
  --dark: #052E16;
  --text: #1F2937;
  --gray: #6B7280;
  --light-bg: #F0FDF4;
  --card-bg: #FFFFFF;
  --border: #D1FAE5;
  --radius: 12px;
  --shadow: 0 1px 3px 0 rgb(16 185 129 / 0.1), 0 1px 2px -1px rgb(16 185 129 / 0.1);
  --shadow-hover: 0 10px 15px -3px rgb(16 185 129 / 0.1), 0 4px 6px -4px rgb(16 185 129 / 0.1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --spacing: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--light-bg);
  font-size: 17px;
}

/* Top minimal header */
.top-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 150;
}

.top-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo::after {
  content: " ✦";
  color: var(--accent);
  font-size: 0.9em;
}

/* Main layout: Sticky left sidebar + scrolling content */
.main-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    padding-top: 5rem;
  }
  
  .sidebar.show {
    display: block;
  }
}

/* Sticky Sidebar Navigation */
.sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: 2.5rem 1.75rem;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  font-size: 0.95rem;
}

.sidebar h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1rem;
  font-weight: 600;
}

.sidebar nav ul {
  list-style: none;
  margin-bottom: 2.25rem;
}

.sidebar nav li {
  margin-bottom: 0.35rem;
}

.sidebar nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar nav a:hover {
  background: var(--light-bg);
  color: var(--primary);
}

.sidebar nav a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.sidebar .about {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Main content area */
.content-area {
  padding: 3rem 3rem 5rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .content-area {
    padding: 2rem 1.5rem 4rem;
    max-width: 100%;
  }
}

/* Hero - Elegant centered minimalist */
.hero {
  text-align: center;
  padding: 4rem 1rem 3.5rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* Long intro text */
.intro {
  margin-bottom: 4rem;
}

.intro h2 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.intro p {
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  max-width: 72ch;
}

/* Section header */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--dark);
  font-weight: 700;
}

/* Article cards - Clean minimalist with thin border */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.75rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.article-card h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
  color: var(--dark);
  font-weight: 700;
}

.article-card .excerpt {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.article-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.tag {
  background: #ECFDF5;
  color: var(--primary);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
}

.read-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 46, 22, 0.75);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.55rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.modal-close {
  background: #F0FDF4;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 1.02rem;
  line-height: 1.8;
}

.modal-body h3 {
  color: var(--primary);
  margin: 1.75rem 0 0.7rem;
}

/* Form */
.form-container {
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 2.75rem 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #FAFAFA;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.1);
}

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

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

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

/* Thank you page */
.thankyou-hero {
  background: linear-gradient(135deg, #166534, #052E16);
  color: white;
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.thankyou-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.thankyou-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

/* Policy pages */
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.policy-page h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.policy-page .last-updated {
  color: var(--gray);
  margin-bottom: 2.25rem;
}

.policy-page h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}

.policy-page h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--primary);
}

.policy-page p, .policy-page li {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 0.95rem;
}

/* Footer */
footer {
  background: #052E16;
  color: #A3E635;
  padding: 3.5rem 2rem 2.25rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

footer a {
  color: #A3E635;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }
}

/* Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}