:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #14211a;
  --muted: #5b6a61;
  --green: #1f4d36;
  --green-deep: #133324;
  --lime: #b8f03a;
  --line: #e2ded2;
  --radius: 20px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }
a { color: inherit; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 238, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font: 700 13px/1.1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184, 240, 58, .35); }

/* Hero */
.hero { background: var(--green); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; min-height: calc(100vh - 72px); padding-block: 64px; }
.eyebrow { margin: 0 0 16px; color: var(--lime); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); text-transform: uppercase; }
.hero__lead { max-width: 30ch; margin: 24px 0 40px; font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .8); }

.hero__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 28%;
  animation: float 6s ease-in-out infinite;
}
.tile svg { width: 46%; height: 46%; }
.tile--a { top: 0; left: 4%; background: var(--lime); fill: var(--green-deep); }
.tile--b { top: 10%; right: 0; background: #fff; fill: none; stroke: var(--green); stroke-width: 2.5; animation-delay: -1.5s; }
.tile--c { bottom: 0; left: 14%; background: var(--green-deep); fill: var(--lime); animation-delay: -3s; }
.tile--d { bottom: 8%; right: 6%; width: 34%; background: rgba(255, 255, 255, .12); fill: none; stroke: #fff; stroke-width: 2.5; animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

/* Sections */
section h2 { font-size: clamp(32px, 4.5vw, 52px); }

.about { padding-block: 120px; }
.about__lead { max-width: 60ch; margin: 24px 0 56px; font-size: 20px; color: var(--muted); }
.about__outro { margin: 48px 0 0; font: 500 clamp(20px, 2.4vw, 26px)/1.35 var(--font-head); max-width: 34ch; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--green); }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card h3::before { content: ""; display: block; width: 36px; height: 6px; margin-bottom: 20px; border-radius: 3px; background: var(--lime); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.contacts { padding-block: 0 120px; }
.contacts__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 64px; border-radius: 32px; background: var(--green-deep); color: #fff; }
.contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.contacts__list span { display: block; color: var(--lime); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contacts__list a { font: 500 clamp(20px, 2.4vw, 28px)/1.3 var(--font-head); text-decoration: none; }
.contacts__list a:hover { color: var(--lime); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.footer p { margin: 0; }
.footer__muted { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: 80px 120px; }
.legal__body { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p, .legal li { color: #2c3a32; }
.legal ul { padding-left: 1.2em; }
.legal__org { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(44, 58, 50, .15); }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .hero__inner { grid-template-columns: 1fr; min-height: auto; padding-block: 56px 72px; }
  .hero__art { max-width: 300px; }
  .about { padding-block: 80px; }
  .contacts { padding-block: 0 80px; }
  .contacts__inner { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .about__lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; }
}
