@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Inter:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;600&family=JetBrains+Mono:wght@500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #0E1512; color: #E8F0EC;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: #E8F0EC; text-decoration: none; }
a:hover { color: #4FB891; }

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; border-bottom: 1px solid #27332D;
}
.brand { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 17px; }
.nav-links { display: flex; gap: 18px; color: #849185; font-size: 14px; }
.nav-links a:hover { color: #E8F0EC; }

main { flex: 1; padding: 36px 28px; max-width: 920px; margin: 0 auto; width: 100%; }
main.hero { max-width: 760px; }
main.page { max-width: 820px; }

h1 {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -0.01em;
}
h2 {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.3;
  margin: 0 0 6px; letter-spacing: 0;
}
.lead { color: #849185; font-size: 15px; margin: 0 0 18px; max-width: 600px; }
.meta { color: #849185; font-size: 13px; margin: 0 0 14px; }

.actions { display: flex; gap: 10px; margin: 14px 0 22px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  border: 1px solid #27332D; cursor: pointer; transition: all .15s;
}
.button.primary { background: #4FB891; color: #0E1512; border-color: #4FB891; }
.button.primary:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: #E8F0EC; }
.button.ghost:hover { border-color: #4FB891; }

.trio { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio li { padding: 12px 14px; border: 1px solid #27332D; border-radius: 8px; background: #15201C; }
.trio b { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.trio span { color: #849185; font-size: 13px; line-height: 1.4; }

.card { background: #15201C; border: 1px solid #27332D; border-radius: 10px; padding: 18px; display: grid; gap: 10px; margin-top: 14px; }
.card label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.card input, .card select, .card textarea {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 14px;
  background: #0E1512; color: #E8F0EC;
  border: 1px solid #27332D; border-radius: 6px;
}
.card textarea { min-height: 90px; resize: vertical; font-family: 'Manrope', system-ui, sans-serif; }
.card button[type="submit"] {
  height: 38px; background: #4FB891; color: #0E1512;
  border: 0; border-radius: 6px; font-weight: 700; cursor: pointer;
  margin-top: 4px; font-size: 14px;
}
.card .muted { color: #849185; font-size: 12px; margin: 4px 0 0; }

.policy section { margin: 14px 0; padding-bottom: 12px; border-bottom: 1px solid #27332D; }
.policy section:last-child { border-bottom: 0; }
.policy p { color: #849185; margin: 0; font-size: 14px; line-height: 1.55; }

footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; border-top: 1px solid #27332D;
  color: #849185; font-size: 13px; gap: 14px; flex-wrap: wrap;
}
footer a { color: #849185; }
footer a:hover { color: #E8F0EC; }

/* === Layout variants — структурные отличия per template === */
body.layout-a main.hero { text-align: left; }
body.layout-b main.hero { text-align: center; max-width: 640px; }
body.layout-c main.hero h1 { font-size: clamp(26px, 2.8vw, 36px); }
body.layout-d main.hero { padding-top: 60px; }
body.layout-e h1 { text-transform: uppercase; letter-spacing: -0.02em; }
body.layout-f .button.primary { border-radius: 999px; }
body.layout-g .trio { grid-template-columns: 1fr; }
body.layout-h main.hero h1 { border-left: 3px solid #4FB891; padding-left: 14px; }
body.layout-i .site-nav { border-bottom: 0; padding-bottom: 0; }
body.layout-j .card { background: transparent; border: 2px dashed #27332D; }
body.layout-k h1 { font-style: italic; }
body.layout-l .lead { font-size: 17px; max-width: 480px; }
body.layout-m main { padding-top: 22px; padding-bottom: 22px; }
body.layout-n .trio li { background: transparent; }
body.layout-o footer { flex-direction: column; align-items: flex-start; }

@media (max-width: 640px) {
  .trio { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  main { padding: 24px 18px; }
  .site-nav { padding: 12px 18px; }
}
