/* ============ DESIGN SYSTEM — СМК Агротрейд ============ */
:root {
  /* Brand palette */
  --green-900: #002e14;
  --green-800: #005522;
  --green-700: #008d36;       /* primary — brand green */
  --green-600: #00a33e;
  --green-500: #00ba47;
  --green-400: #33c76a;
  --green-300: #80dda0;
  --green-100: #d0f0da;
  --green-50:  #eafaf0;

  --gold-600: #b8891e;
  --gold-500: #d4a437;        /* warm wheat/sun */
  --gold-400: #e6bd55;
  --gold-300: #f0d384;
  --gold-100: #fbf1d7;

  --ink-900: #111611;
  --ink-700: #2e3a2a;
  --ink-500: #5e6b57;
  --ink-400: #8a9481;
  --ink-300: #b7bfae;
  --ink-200: #dde2d4;
  --ink-100: #eef1e8;
  --ink-50:  #f7f8f3;

  --white: #ffffff;
  --cream: #fbfaf4;

  /* Type */
  --f-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --f-body: 'Manrope', 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 141, 54, .08);
  --shadow-md: 0 8px 24px rgba(0, 141, 54, .10);
  --shadow-lg: 0 24px 60px rgba(0, 141, 54, .14);

  --container: 1280px;
  --gutter: clamp(16px, 3vw, 32px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink-900);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink-900); }
h1 { font-size: clamp(36px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.lead { font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-500); line-height: 1.6; max-width: 64ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-full); font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 20px rgba(61, 90, 31, .25); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(61, 90, 31, .32); }
.btn-ghost { background: transparent; color: var(--green-800); border: 1.5px solid var(--ink-200); }
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); background: var(--green-50); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Surfaces & borders */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.divider { height: 1px; background: var(--ink-200); width: 100%; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { align-items: center; text-align: center; }

/* Utility */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.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; }

/* Focus */
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }
