@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f2f5f2;
  --surface: #ffffff;
  --surface-soft: #e7eeea;
  --ink: #102a2c;
  --muted: #5b6f70;
  --brand: #d8f36a;
  --brand-deep: #b4d83e;
  --navy: #102a2c;
  --line: #cfdbd6;
  --shadow: 0 20px 55px rgba(16, 42, 44, 0.11);
  --page-bg-parallax-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, rgba(216, 243, 106, 0.18), transparent 32%), radial-gradient(circle at 90% 8%, rgba(177, 215, 208, 0.34), transparent 27%), var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: -12% 0;
  z-index: -2;
  background-image: linear-gradient(rgba(242, 245, 242, 0.8), rgba(242, 245, 242, 0.92)), url("/webp/hero-mobile.webp");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--page-bg-parallax-y), 0);
  will-change: transform;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(16, 42, 44, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 42, 44, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.shell, .articles-page { max-width: 1180px; margin: 0 auto; padding: 24px 28px 64px; }
.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 20px;
  background: rgba(16, 42, 44, 0.96);
  border: 1px solid rgba(216, 243, 106, 0.2);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(16, 42, 44, 0.16);
  backdrop-filter: blur(16px);
}
.topbar-brand { display: inline-flex; align-items: center; }
.topbar-brand-text { color: #f6faf5; font-weight: 800; font-size: 1.06rem; letter-spacing: -0.04em; text-decoration: none; }
.topbar-brand-text::before { content: ""; width: 10px; height: 10px; margin-right: 10px; background: var(--brand); border-radius: 2px; transform: rotate(45deg); }
.topbar-brand-text:hover, .topbar-brand-text:focus-visible { color: var(--brand); }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: #e6efea; text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.topnav a:hover, .topnav a:focus-visible { color: var(--brand); }
.menu-separator { width: 1px; height: 22px; background: rgba(230, 239, 234, 0.25); }
.lang-menu { display: flex; align-items: center; gap: 5px; }
.lang-btn, .lang-menu a { min-width: 34px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(230, 239, 234, 0.32); border-radius: 6px; color: #e6efea; background: transparent; font: 500 0.72rem "DM Mono", monospace; }
.lang-btn.is-active, .lang-menu a:hover, .lang-menu a:focus-visible { color: var(--navy); border-color: var(--brand); background: var(--brand); }
.menu-toggle { display: none; width: 42px; height: 38px; border: 1px solid rgba(230, 239, 234, 0.3); border-radius: 8px; background: transparent; cursor: pointer; }
.menu-toggle::before { content: ""; display: block; width: 20px; height: 2px; margin: 0 auto; background: #f6faf5; box-shadow: 0 -6px 0 #f6faf5, 0 6px 0 #f6faf5; }
.menu-toggle span { display: none; }
.eyebrow { margin: 0 0 14px; color: #477875; font: 500 0.72rem "DM Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -0.045em; }
h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 0.98; max-width: 12ch; }
.lead { max-width: 58ch; margin: 0 0 26px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 19px; border: 1px solid transparent; border-radius: 8px; font-size: 0.86rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 42, 44, 0.16); }
.btn-primary { color: var(--navy); background: var(--brand); }
.btn-primary:hover, .btn-primary:focus-visible { background: #e4ff89; }
.btn-secondary { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.74); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--ink); background: #fff; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr); align-items: stretch; gap: 38px; margin-top: 26px; padding: 58px 56px; overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.page-hero-body { align-self: center; }
.page-hero-media { min-height: 400px; }
.page-hero-media img { display: block; width: 100%; height: 100%; min-height: 400px; object-fit: cover; border-radius: 14px; filter: saturate(0.76) contrast(1.04); }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.content-section { margin-top: 20px; padding: 46px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.78); }
.content-section + .content-section { margin-top: 18px; }
.section-alt { background: rgba(231, 238, 234, 0.78); }
.section-network { border-color: rgba(71, 120, 117, 0.32); background: linear-gradient(135deg, rgba(216, 243, 106, 0.18), rgba(255, 255, 255, 0.82) 58%); }
.section-title { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.08; max-width: 18ch; }
.section-lead { max-width: 70ch; margin: 0 0 26px; color: var(--muted); line-height: 1.75; }
.profile-section { display: grid; grid-template-columns: 25% minmax(0, 1fr); align-items: center; gap: 34px; }
.profile-photo-wrap { width: 100%; max-width: 280px; max-height: 360px; }
.profile-photo { display: block; width: 100%; height: 360px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border: 6px solid #fff; border-radius: 12px; box-shadow: 0 12px 26px rgba(16, 42, 44, 0.15); }
.profile-copy .section-lead { margin-bottom: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.feature-card { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.84); transition: transform 0.18s ease, border-color 0.18s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: #87a9a1; }
.feature-card h3 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.feature-card p, .card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.feature-card--accent { border-top: 3px solid var(--brand-deep); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 22px; }
.two-col-item h3 { margin: 0 0 12px; font-size: 1rem; }
.content-list { margin: 8px 0 12px; padding-left: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.content-list li { padding-left: 4px; margin-bottom: 4px; }
.section-photo { margin: 12px 0 22px; }
.section-photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; filter: saturate(0.78); }
.training-section { color: #fff; border-color: rgba(216, 243, 106, 0.32); background-image: var(--bg-image, none); background-size: cover; background-position: center; }
.training-section .section-title, .training-section .section-lead, .training-section p { color: #fff; }
.training-section .section-title { max-width: 22ch; }
.training-section .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.12); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.lang-panel { display: none; }
.lang-panel.is-active { display: block; }
.card { grid-column: span 4; padding: 20px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.84); transition: transform .18s ease, border-color .18s ease; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: #87a9a1; }
.card h2, .card h3 { margin: 0 0 10px; font-size: 1.03rem; }
.article-thumb { width: 100%; height: 170px; margin: 8px 0 14px; object-fit: cover; border-radius: 8px; filter: saturate(0.78); }
.grid--3col .card { grid-column: span 4; }
.grid--2col .card { grid-column: span 6; }
.foot { margin-top: 26px; padding: 18px 0 8px; color: var(--muted); font: 0.78rem "DM Mono", monospace; text-align: center; }
.foot a, .section-cta-link a, .card-link { color: #477875; font-weight: 700; }
.cookie-consent { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; align-items: center; gap: 18px; max-width: min(620px, calc(100vw - 40px)); padding: 16px 18px; color: #fff; background: rgba(16,42,44,.97); border: 1px solid rgba(216,243,106,.35); border-radius: 12px; box-shadow: var(--shadow); }
.cookie-consent[hidden], .modal-overlay[hidden] { display: none; }
.cookie-consent p { margin: 0; font-size: .86rem; line-height: 1.5; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-consent .btn { padding: 9px 14px; font-size: .78rem; }
.cookie-consent .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(16,42,44,.6); backdrop-filter: blur(8px); }
.modal-box { position: relative; width: 100%; max-width: 380px; padding: 38px 32px 28px; text-align: center; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 14px; padding: 4px 8px; border: 0; border-radius: 6px; color: var(--muted); background: none; font-size: 1.2rem; cursor: pointer; }
.modal-label { margin: 0 0 6px; color: var(--muted); font: .72rem "DM Mono", monospace; text-transform: uppercase; }
.modal-number { margin: 0 0 24px; font-size: 2rem; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.copy-confirm { color: #477875; font-size: .85rem; }
@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; padding: 38px 32px; }
  .page-hero-media, .page-hero-media img { min-height: 280px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell, .articles-page { padding: 14px 16px 40px; }
  .topbar { top: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border: 1px solid rgba(216,243,106,.25); border-radius: 12px; background: rgba(16,42,44,.98); box-shadow: var(--shadow); }
  .topnav.is-open { display: flex; }
  .menu-separator { width: 100%; height: 1px; }
  .lang-menu { justify-content: space-between; }
  .lang-btn { flex: 1; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .page-hero { margin-top: 18px; padding: 30px 22px 22px; border-radius: 18px; }
  .page-hero-media, .page-hero-media img { min-height: 220px; }
  .content-section { padding: 30px 22px; border-radius: 18px; }
  .features-grid, .two-col, .profile-section { grid-template-columns: 1fr; }
  .profile-section { gap: 22px; }
  .profile-photo-wrap { max-width: 150px; max-height: 200px; }
  .profile-photo { height: 200px; }
  .card, .grid--2col .card, .grid--3col .card { grid-column: span 12; }
  .hero-actions, .section-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .cookie-consent { right: 12px; bottom: 12px; left: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}
