:root {
  --bg: #F3F7F6;
  --bg-soft: #E7F2EF;
  --text: #1F2A2E;
  --muted: #5B6B70;
  --primary: #0F766E;
  --primary-hover: #0D5F59;
  --primary-soft: #CCFBF1;
  --ink: #16312E;
  --card: #ffffff;
  --line: rgba(31, 42, 46, 0.12);
  --header: 76px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(22, 49, 46, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(45, 212, 191, 0.18), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(15, 118, 110, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

p, ul, ol { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-top: 2rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-family: var(--font); font-weight: 700; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid #5EEAD4;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 247, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
  min-height: 44px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 36px;
}

.logo-mark img { width: 36px; height: 36px; }
.logo-sub { color: var(--primary); font-weight: 600; }

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover { color: var(--ink); background: rgba(15, 118, 110, 0.08); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--primary-soft);
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 16px 20px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav .btn { width: 100%; margin-top: 8px; }

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: rgba(31, 42, 46, 0.18);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.hero {
  padding: 36px 0 12px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.9)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 38rem;
}

.subline {
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section {
  padding: 64px 0 8px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.section-head h2 { margin-top: 0; }
.section-intro { color: var(--muted); margin: 0; }

.path-grid,
.article-grid,
.topic-grid {
  display: grid;
  gap: 20px;
}

.path-grid,
.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.topic-card,
.article-card,
.panel,
.form-card,
.prose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card {
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.topic-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.topic-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.topic-card h3 { margin: 0; }
.topic-card p { margin: 0; color: var(--muted); flex: 1; }
.topic-card .text-link { margin-top: 8px; }

.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card[hidden] { display: none; }

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

.article-card a.cover-link {
  display: block;
  text-decoration: none;
}

.article-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.article-body h3 a {
  color: inherit;
  text-decoration: none;
}

.article-body h3 a:hover { color: var(--primary); }

.article-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.panel {
  padding: 36px 32px;
}

.panel-dark {
  background: linear-gradient(160deg, #0F766E, #134E4A);
  color: #F0FDFA;
  border: none;
}

.panel-dark h2,
.panel-dark p { color: #F0FDFA; }

.panel-dark .subline,
.panel-dark p { opacity: 0.92; }

.split-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.page-intro { padding: 40px 0 16px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: rgba(31, 42, 46, 0.35);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-bar button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.prose-card,
.article-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 44px 32px;
}

.prose-card.prose,
.article-shell.article-main {
  max-width: none;
  width: 100%;
}

.article-shell { margin: 0 auto 48px; }

.article-hero-cover {
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid var(--line);
}

.article-hero-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-main h2 { font-size: 1.55rem; }
.article-main h3 { margin-top: 1.5rem; }
.article-main ol,
.article-main ul { padding-left: 1.2rem; }
.article-main li { margin-bottom: 0.55rem; }

.cta-box {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
}

.cta-box p:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

tr:last-child td { border-bottom: none; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details[open] summary { margin-bottom: 8px; }

.sources a { word-break: break-word; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-facts {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.contact-facts div {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-facts dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-facts dd { margin: 0; }

.form-card { padding: 28px; }

.home-lead .form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  align-items: start;
}

.home-lead .form-banner,
.home-lead .preloader,
.home-lead .form-card > .btn {
  grid-column: 1 / -1;
}

.home-lead .form-card > .btn { justify-self: start; margin-top: 4px; }

.field { margin-bottom: 12px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea { min-height: 140px; resize: vertical; }

.field-error {
  display: none;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.88rem;
}

.field-error:not(:empty) { display: block; }

#first_name-error,
#last_name-error,
#email-error,
#phone-error,
#first_name-1-error,
#last_name-1-error,
#email-1-error,
#phone-1-error {
  display: none;
  margin: 6px 0 0;
  padding: 0;
  background: transparent;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 0;
}

#first_name-error:not(:empty),
#last_name-error:not(:empty),
#email-error:not(:empty),
#phone-error:not(:empty),
#first_name-1-error:not(:empty),
#last_name-1-error:not(:empty),
#email-1-error:not(:empty),
#phone-1-error:not(:empty) {
  display: block;
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check-field input { width: auto; min-height: auto; margin-top: 4px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-banner {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.form-banner.ok {
  background: #ecfdf3;
  color: #027a48;
}

.form-banner.bad {
  background: #fef3f2;
  color: #b42318;
}

.preloader {
  display: none;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

form.loading .preloader { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-footer {
  margin-top: 72px;
  padding: 40px 0 28px;
  background: var(--ink);
  color: rgba(240, 253, 250, 0.86);
}

.site-footer a { color: #99F6E4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.copyright {
  margin: 0;
  color: rgba(240, 253, 250, 0.62);
  font-size: 0.92rem;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.cookie-bar p { margin: 0 0 14px; font-size: 0.95rem; color: var(--muted); }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 
body.has-cookie { padding-bottom: 140px; } */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.mission-grid .panel h2,
.mission-grid .panel h3 { margin-top: 0; }

@media (max-width: 1199px) {
  .hero-panel,
  .split-panels,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .topic-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container { width: min(var(--max), calc(100% - 1.5rem)); }
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav:not([hidden]) { display: block; }
  .hero-panel,
  .prose-card,
  .article-shell { padding: 24px 18px; }
  .path-grid,
  .topic-grid,
  .article-grid,
  .mission-grid,
  .home-lead .form-card { grid-template-columns: 1fr; }
  .section { padding: 48px 0 8px; }
}

.intl-tel-input { width: 100%; }
.intl-tel-input .selected-flag { border-radius: 12px 0 0 12px; }
