/* dmarcham-engineering.com — «план полей»: английская лоскутная пашня с высоты, участок = услуга.
   Палитра — поле в конце мая: мел, изгородь, ячмень, пшеница, пашня, пастбище; один акцент — красный трактор.
   Шрифты системные: Gill Sans (macOS, iOS) для заголовков и интерфейса, Charter для текста. Внешних ресурсов нет. */
:root {
  --chalk: #EEF0E8;
  --chalk-2: #E3E7DA;
  --sheet: #F6F7F2;
  --hedge: #23402E;
  --hedge-2: #2E5039;
  --hedge-3: #3A5A45;
  --leaf: #4A7556;
  --ink-soft: #46594B;
  --barley: #A9BE6E;
  --barley-row: #8DA355;
  --wheat: #D9BE78;
  --wheat-row: #BF9F58;
  --plough: #7A5A43;
  --plough-row: #5F4432;
  --pasture: #C9D29E;
  --pasture-row: #AEB984;
  --lane: #E6E4D3;
  --red: #B8312A;
  --red-dark: #962520;
  --sans: "Gill Sans", "Gill Sans MT", Calibri, "Segoe UI", system-ui, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--hedge);
  font: 400 1.125rem/1.62 var(--serif);
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sans); color: var(--hedge); margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.012em; }
h2 { font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.005em; }
h3 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--hedge); color: var(--chalk); padding: 10px 14px; font-family: var(--sans); z-index: 10; }
.skip:focus { top: 12px; }

/* шапка: под ней — изгородь */
.top { border-bottom: 5px solid var(--hedge); background: var(--chalk); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; }
.mark-a { fill: var(--barley); } .mark-b { fill: var(--wheat); } .mark-c { fill: var(--plough); } .mark-d { fill: var(--pasture); }
.mark-rows { fill: none; stroke: var(--hedge); stroke-opacity: .35; stroke-width: 1.4; }
.mark-hedge { fill: none; stroke: var(--hedge); stroke-width: 3; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; font-family: var(--sans); line-height: 1.05; }
.brand-name { font-size: 1.55rem; font-weight: 600; letter-spacing: -.005em; }
.brand-sub { font-size: .9rem; color: var(--ink-soft); letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 6px 26px; font-family: var(--sans); font-size: 1.08rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 4px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-mail { border: 2px solid var(--hedge); border-radius: 4px; padding: 5px 14px; }
.site-nav .nav-mail:hover, .site-nav .nav-mail[aria-current] { background: var(--hedge); color: var(--chalk); text-decoration: none; }

/* первый экран */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text h1 { max-width: 12.5em; margin-bottom: .55em; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.button { display: inline-block; background: var(--red); color: #fff; font: 600 1.1rem/1.2 var(--sans); text-decoration: none; padding: .9em 1.35em; border-radius: 3px; }
.button:hover { background: var(--red-dark); }
.quiet-link { font-family: var(--sans); font-size: 1.1rem; }
.plan { margin: 0; }
.fieldplan { width: 100%; height: auto; border: 6px solid var(--hedge); border-radius: 14px; background: var(--hedge); }
.plan figcaption { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); margin-top: 12px; }

/* план полей */
.plot { cursor: pointer; }
.plot-a .plot-ground, .plot-icon-a .plot-ground { fill: var(--barley); }
.plot-b .plot-ground, .plot-icon-b .plot-ground { fill: var(--wheat); }
.plot-c .plot-ground, .plot-icon-c .plot-ground { fill: var(--plough); }
.plot-d .plot-ground, .plot-icon-d .plot-ground { fill: var(--pasture); }
.plot-rows path, .icon-rows path { fill: none; stroke-width: 3; stroke-linecap: round; }
.rows-a path, .plot-icon-a .icon-rows path { stroke: var(--barley-row); }
.rows-b path, .plot-icon-b .icon-rows path { stroke: var(--wheat-row); }
.rows-c path, .plot-icon-c .icon-rows path { stroke: var(--plough-row); stroke-width: 4; }
.rows-d path, .plot-icon-d .icon-rows path { stroke: var(--pasture-row); }
.icon-rows path { stroke-width: 7; }
.plot-icon-c .icon-rows path { stroke-width: 9; }
.lane { fill: none; stroke: var(--lane); stroke-width: 10; stroke-linecap: round; }
.hedge { fill: none; stroke: var(--hedge); stroke-width: 7; stroke-linejoin: round; }
.tree { fill: var(--hedge-2); }
.tree-top { fill: var(--leaf); }
.lab-bg { fill: var(--sheet); }
.lab-dot { fill: var(--hedge); }
.lab-letter, .icon-letter { fill: var(--chalk); font-family: var(--sans); font-weight: 600; text-anchor: middle; }
.lab-letter { font-size: 18px; }
.lab-text { fill: var(--hedge); font-family: var(--sans); font-size: 19px; }
.labels { pointer-events: none; }
.icon-letter { font-size: 62px; }
.plot-ground { transition: filter .2s ease; }
.plot:hover .plot-ground, .plot:focus-visible .plot-ground { filter: brightness(1.08) saturate(1.08); }
.fieldplan:has(.plot-a:hover, .plot-a:focus-visible) .label-a .lab-dot,
.fieldplan:has(.plot-b:hover, .plot-b:focus-visible) .label-b .lab-dot,
.fieldplan:has(.plot-c:hover, .plot-c:focus-visible) .label-c .lab-dot,
.fieldplan:has(.plot-d:hover, .plot-d:focus-visible) .label-d .lab-dot { fill: var(--red); }
.plot:focus { outline: none; }
.fieldplan:has(.plot-a:focus-visible) .label-a .lab-bg,
.fieldplan:has(.plot-b:focus-visible) .label-b .lab-bg,
.fieldplan:has(.plot-c:focus-visible) .label-c .lab-bg,
.fieldplan:has(.plot-d:focus-visible) .label-d .lab-bg { stroke: var(--red); stroke-width: 4; }

/* единственное движение: колеи прокладываются по полю при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .plot-rows path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sow 1.5s cubic-bezier(.45, .05, .25, 1) forwards; }
  .rows-b path { animation-delay: .3s; }
  .rows-c path { animation-delay: .6s; }
  .rows-d path { animation-delay: .9s; }
  .plot-label { opacity: 0; animation: settle .5s ease-out 1.6s forwards; }
}
@keyframes sow { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: 1; } }

/* что строим: ряды-участки, между ними изгородь */
.work { padding: clamp(56px, 8vw, 104px) 0; background: var(--sheet); border-top: 5px solid var(--hedge); }
.work h2 { margin-bottom: .45em; }
.section-intro { max-width: 40em; color: var(--ink-soft); margin-bottom: 44px; }
.plot-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); padding: 38px 0 34px; border-top: 4px solid var(--hedge); scroll-margin-top: 24px; transition: background-color .4s ease; }
.plot-row:target { background: var(--chalk-2); }
.plot-icon { width: 132px; height: auto; }
.plot-icon .hedge { stroke-width: 12; }
.plot-icon .lab-dot { fill: var(--hedge); }
.plot-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 44px; }
.plot-body h3 { grid-column: 1 / -1; margin-bottom: 6px; }
.plot-body p { margin: 0; }
.plot-body ul { margin: 0; padding: 0; list-style: none; font-size: 1.05rem; }
.plot-body li { position: relative; padding-left: 26px; margin-bottom: 7px; }
.plot-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; border-radius: 2px; background: var(--plough); }

/* ИИ: тёмный раздел цвета изгороди */
.ai { background: var(--hedge); color: var(--chalk); padding: clamp(56px, 8vw, 104px) 0; }
.ai h2, .ai h3 { color: var(--chalk); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; gap: 28px clamp(32px, 6vw, 88px); }
.ai-lead p { color: #D5DCCC; margin-top: .9em; max-width: 30em; }
.jobs { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; }
.jobs li { padding: 20px 0 20px 34px; border-top: 2px solid var(--hedge-3); position: relative; font-size: 1.1rem; }
.jobs li:last-child { border-bottom: 2px solid var(--hedge-3); }
.jobs li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 16px; height: 16px; border-radius: 50%; background: var(--wheat); }
.ai-note { align-self: end; background: var(--hedge-2); border-left: 6px solid var(--wheat); padding: 22px 24px 8px; }
.ai-note h3 { font-size: 1.2rem; margin-bottom: .5em; }
.ai-note p { color: #D5DCCC; font-size: 1.02rem; }

/* как идёт проект: шаги по одной борозде */
.project { padding: clamp(56px, 8vw, 104px) 0; }
.project h2 { margin-bottom: 52px; }
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.season::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 4px; border-radius: 2px; background: var(--plough); }
.season li { counter-increment: step; position: relative; padding-top: 66px; }
.season li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--chalk); border: 4px solid var(--plough); font: 600 1.25rem/38px var(--sans); text-align: center; color: var(--hedge); }
.season h3 { font-size: 1.3rem; margin-bottom: 8px; }
.season p { font-size: 1.02rem; color: var(--ink-soft); }

/* призыв: полоса цвета пшеницы */
.call { background: var(--wheat); padding: clamp(44px, 6vw, 72px) 0; border-top: 5px solid var(--hedge); }
.call-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.call h2 { margin-bottom: .3em; }
.call p { margin: 0; max-width: 34em; }

/* подвал */
.foot { background: var(--hedge); color: var(--chalk); font-family: var(--sans); padding: 52px 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-name { font-weight: 600; font-size: 1.05rem; margin-bottom: .4em; }
.foot address { color: #D5DCCC; line-height: 1.5; margin-bottom: 1em; font-family: var(--serif); font-size: 1rem; }   /* в Gill Sans «1» похожа на «I»: индекс RG1 1TG — антиквой */
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { text-decoration: underline; }
.foot-small { margin-top: 40px; padding-top: 18px; border-top: 2px solid var(--hedge-3); font-size: .92rem; color: #C3CCB8; }
.foot-small p { margin: 0 0 .5em; max-width: 60em; }

/* страницы: контакты, документы, 404 */
.page { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.page h1 { margin-bottom: .45em; }
.page h2 { font-size: 1.55rem; font-weight: 600; margin: 1.7em 0 .5em; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.page-main { max-width: 40em; }
.mail-big { font-family: var(--sans); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.2em 0 .4em; }
.plain-list { padding-left: 1.1em; }
.plain-list li { margin-bottom: .4em; }
.page-side { align-self: start; background: var(--sheet); border: 4px solid var(--hedge); border-radius: 12px; padding: 4px 26px 14px; }
.page-side h2 { margin-top: 1em; }
.side-name { font-family: var(--sans); font-weight: 600; margin-bottom: .3em; }
.page-side address { margin-bottom: 1em; }
.legal-wrap { max-width: 800px; }
.legal-date { font-family: var(--sans); color: var(--ink-soft); }
.legal h2 { font-size: 1.5rem; }
.register { margin: 34px 0; background: var(--sheet); border: 4px solid var(--hedge); border-radius: 12px; padding: 22px clamp(18px, 3vw, 30px) 10px; }
.register h2 { margin: 0 0 16px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.reg-no { font-size: .95rem; font-weight: 600; background: var(--hedge); color: var(--chalk); padding: 3px 12px; border-radius: 999px; }
.register dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0 0 12px; }
.register dt, .register dd { padding: 10px 0; border-top: 2px dotted #B6C0A4; }
.register dt { font-family: var(--sans); font-weight: 600; padding-right: 16px; }
.register dd { margin: 0; }
.reg-note { color: var(--ink-soft); font-style: italic; }
.code { list-style: none; counter-reset: rule; margin: 32px 0 0; padding: 0; }
.code li { counter-increment: rule; position: relative; padding: 4px 0 6px 64px; margin-bottom: 18px; }
.code li::before { content: counter(rule); position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--plough); font: 600 1.15rem/34px var(--sans); text-align: center; }
.code h2 { font-size: 1.35rem; margin: 0 0 .35em; padding-top: 6px; }
.notfound { text-align: center; }
.notfound .wrap { max-width: 640px; }
.nf-plot { width: 200px; margin: 0 auto 28px; }
.nf-ground { fill: var(--pasture); }
.notfound .lede { margin: 0 auto 1.4em; }

/* узкие экраны */
@media (max-width: 960px) {
  .hero-grid, .ai-grid, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-column: auto; grid-row: auto; }
  .season { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .season::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 4px; height: auto; }
  .season li { padding: 6px 0 22px 70px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-company { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .plot-row { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .plot-icon { width: 72px; }
  .plot-body { grid-template-columns: minmax(0, 1fr); }
  .register dl { grid-template-columns: minmax(0, 1fr); }
  .register dt { padding-bottom: 0; }
  .register dd { border-top: 0; padding-top: 2px; }
  .site-nav { gap: 4px 18px; font-size: 1rem; }
  .code li { padding-left: 56px; }
}
