/* ==========================================================
   DEU POL AGRAR: contemporary European editorial style
   Palette: warm paper, forest green, clay
   ========================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --sand: #e6dcc9;
  --ink: #1b2a22;
  --ink-soft: #4a5a51;
  --forest: #24493a;
  --forest-deep: #1a3529;
  --clay: #b8572f;
  --clay-soft: #e0916a;
  --mist: #dfe7df;
  --line: rgba(27, 42, 34, .16);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, address, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--forest); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h1 em { font-style: italic; color: var(--clay); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--clay-soft); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; font: 700 .95rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; cursor: pointer;
  color: #fff; background: var(--forest);
  border: 2px solid var(--forest); border-radius: var(--radius);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--forest-deep); }
.btn-light:hover { background: var(--clay-soft); border-color: var(--clay-soft); color: var(--forest-deep); }
.btn-small { padding: 12px 22px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 230, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(27, 42, 34, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; }
.brand-text small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav ul a {
  text-decoration: none; font-size: .92rem; font-weight: 600; padding: 6px 0; position: relative;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 90px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%;
  background: var(--paper-2); border-radius: 50% 0 0 50%; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-copy h1 { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 28px; }
.hero-note { font-size: .88rem; color: var(--ink-soft); }
.hero-note a { color: var(--forest); font-weight: 600; }

.hero-visual { position: relative; padding: 0 0 50px 40px; }
.art { overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(27, 42, 34, .18); }
.art-field { aspect-ratio: 560 / 520; }
.art-field svg, .art-interior svg { width: 100%; height: 100%; }
.art-interior {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 280 / 220;
  border: 8px solid var(--paper);
  animation: float 7s ease-in-out infinite;
}
.badge-panel {
  position: absolute; right: -8px; top: 28px;
  background: var(--forest); color: #fff; padding: 16px 22px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 2px;
}
.badge-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-soft); }
.badge-panel strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.fact-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(24px, 4vw, 40px);
  background: var(--forest); color: #fff; border-radius: var(--radius) var(--radius) 0 0;
}
.fact-strip li { padding: 30px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; }
.fact-strip li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.fact-code { font-family: var(--serif); font-size: 1.9rem; color: var(--clay-soft); line-height: 1.1; }
.fact-text { font-size: .93rem; color: rgba(255, 255, 255, .82); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 18px; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-head { position: sticky; top: calc(var(--header-h) + 30px); }
.about-head h2 { margin-bottom: 36px; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.about-visual svg { width: 100%; height: 100%; }
.visual-caption {
  position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 10px 18px 10px 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft);
  border-top-right-radius: var(--radius); padding-left: 16px;
}
.about-body > p { margin-bottom: 22px; color: var(--ink-soft); }
.about-body > p:first-child { font-size: 1.2rem; color: var(--ink); }

.info-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0; border-top: 2px solid var(--ink); }
.info-panel { padding: 24px 22px 0 0; }
.info-panel + .info-panel { padding-left: 22px; border-left: 1px solid var(--line); }
.info-panel h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--forest); }
.info-panel p { font-size: .94rem; color: var(--ink-soft); line-height: 1.6; }

.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4;
  padding: 8px 0 8px 28px; border-left: 4px solid var(--clay); color: var(--forest-deep);
}

/* ---------- Services ---------- */
.services { background: var(--paper-2); }
.service-group { margin-bottom: clamp(48px, 7vw, 88px); }
.service-group:last-child { margin-bottom: 0; }
.group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px;
  padding-bottom: 22px; border-bottom: 2px solid var(--ink);
}
.group-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--forest); color: #fff; padding: 6px 12px; border-radius: 3px;
}
.group-head h3 small { font-family: var(--sans); font-size: .85rem; color: var(--clay); margin-left: 10px; letter-spacing: .06em; }

.service-row {
  display: grid; grid-template-columns: 70px 1.6fr 1fr; gap: 24px; align-items: center;
  padding: 34px 16px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding-left .3s;
}
.service-row:hover { background: rgba(255, 255, 255, .55); padding-left: 28px; }
.row-num { font-family: var(--serif); font-size: 2rem; color: var(--clay); }
.row-main h4 { margin-bottom: 8px; font-size: 1.25rem; font-family: var(--serif); font-weight: 400; }
.row-main p { color: var(--ink-soft); max-width: 560px; font-size: .98rem; }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.row-tags li {
  font-size: .78rem; font-weight: 600; padding: 6px 14px; border: 1px solid var(--forest);
  border-radius: 999px; color: var(--forest);
}

.finish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; }
.finish-item {
  padding: 34px 32px; background: var(--forest); color: #fff; position: relative;
  transition: background .3s, transform .3s;
}
.finish-item:nth-child(2) { background: var(--forest-deep); }
.finish-item:nth-child(3) { background: #2d5744; }
.finish-item:hover { background: var(--clay); transform: translateY(-6px); }
.finish-item svg { width: 44px; height: 44px; color: var(--clay-soft); margin-bottom: 22px; transition: color .3s; }
.finish-item:hover svg { color: #fff; }
.finish-item h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; }
.finish-item p { font-size: .96rem; color: rgba(255, 255, 255, .85); }
.service-note { margin-top: 26px; font-size: .92rem; color: var(--ink-soft); max-width: 720px; }

/* ---------- Why us ---------- */
.why { background: var(--forest-deep); color: #fff; }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 30px); }
.why-head h2 { margin-bottom: 22px; }
.why-head p { color: rgba(255, 255, 255, .78); margin-bottom: 34px; max-width: 440px; }

.benefit { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.benefit:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.benefit-num {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--clay-soft); color: var(--clay-soft); font-family: var(--serif); font-size: 1.3rem;
  transition: background .3s, color .3s;
}
.benefit:hover .benefit-num { background: var(--clay-soft); color: var(--forest-deep); }
.benefit h3 { font-size: 1.4rem; margin-bottom: 8px; }
.benefit p { color: rgba(255, 255, 255, .78); font-size: .98rem; }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { padding-top: 26px; border-top: 3px solid var(--forest); position: relative; transition: border-color .3s, transform .3s; }
.step:hover { border-color: var(--clay); transform: translateY(-4px); }
.step-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--sand); display: block; margin-bottom: 14px; -webkit-text-stroke: 1px var(--clay); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 34px; max-width: 520px; }

.company-card { background: var(--paper); padding: clamp(24px, 3vw, 38px); border-radius: var(--radius); border-left: 5px solid var(--clay); }
.company-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4; margin-bottom: 22px; }
.company-card dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.company-card dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 4px; }
.company-card dd { font-size: 1.02rem; }
.company-card a { color: var(--forest); font-weight: 600; }

.contact-form { background: var(--paper); padding: clamp(26px, 4vw, 48px); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(27, 42, 34, .1); }
.contact-form h3 { margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1.5px solid #c9c2b2; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36, 73, 58, .15);
}
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error { display: block; min-height: 0; font-size: .82rem; color: #b3261e; margin-top: 5px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin-bottom: 6px; cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--forest); }
.contact-form .btn { margin-top: 20px; }
.form-status { margin-top: 16px; font-size: .94rem; font-weight: 600; color: var(--forest); }
.form-status.err { color: #b3261e; }
.form-hint { margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: clamp(50px, 6vw, 80px); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #fff; display: block; margin-bottom: 8px; letter-spacing: .04em; }
.footer-brand p { margin-bottom: 4px; }
.site-footer h4 { color: var(--clay-soft); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--clay-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem; color: rgba(255, 255, 255, .55);
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .service-row { grid-template-columns: 56px 1fr; }
  .row-tags { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--paper); padding: 24px var(--gutter) 30px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(27, 42, 34, .08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { width: 100%; }

  .hero::before { display: none; }
  .hero-grid, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-head, .why-head { position: static; }
  .hero-visual { padding: 0 0 50px 0; max-width: 560px; }
  .badge-panel { right: 12px; }
  .finish-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-text small { display: none; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .info-panels { grid-template-columns: 1fr; }
  .info-panel, .info-panel + .info-panel { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .benefit { grid-template-columns: 48px 1fr; gap: 16px; }
  .benefit-num { width: 44px; height: 44px; }
  .service-row { padding: 28px 4px; gap: 14px; }
  .service-row:hover { padding-left: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
