/* Public site of Digital Agronom™ (site.html). Separate from styles.css so the application is not affected. */
:root{--green:#1f7a3a;--green-dark:#16592a;--green-soft:#e8f4ea;--ink:#14231a;--muted:#4f5f55;--line:#dfe8e0;--card:#fff;--bg:#f4f8f3;--radius:18px;--shadow:0 10px 30px rgba(20,60,30,.10)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5;-webkit-text-size-adjust:100%}
a{color:var(--green)}
img,svg{display:block}
.site-icon{width:28px;height:28px;flex:none;fill:none;stroke:var(--green);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Header: brand, sections, then the language switcher right before «Увійти» (owner's mockup). */
.site-header{position:sticky;top:0;z-index:20;padding:14px 16px 0}
.site-header-inner{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:20px;padding:10px 14px 10px 18px;background:rgba(255,255,255,.96);border-radius:22px;box-shadow:var(--shadow)}
.site-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:800;font-size:1.35rem;white-space:nowrap}
.site-brand img{display:block;object-fit:contain}
.site-brand-full{width:auto;height:44px}
.site-brand .site-brand-leaf{display:none;width:36px;height:36px}
.site-brand sup{font-size:.55em}
.site-nav{display:flex;gap:4px;margin-left:auto}
.site-nav a{padding:8px 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:500;white-space:nowrap}
.site-nav a:hover{background:var(--green-soft)}
.site-nav a.active{color:var(--green);font-weight:700;box-shadow:inset 0 -3px 0 var(--green)}
.site-actions{display:flex;align-items:center;gap:10px}
.site-login,.site-signup{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.site-login{border:1px solid var(--line);background:#fff;color:var(--ink)}
.site-login:hover{border-color:var(--green);color:var(--green)}
.site-signup{background:var(--green);color:#fff}
.site-signup:hover{background:var(--green-dark)}
.site-menu-toggle{display:none;margin-left:auto;width:44px;height:44px;border:0;border-radius:10px;background:var(--green-soft);padding:12px 10px;flex-direction:column;justify-content:space-between;cursor:pointer}
.site-menu-toggle span{display:block;height:2px;background:var(--ink);border-radius:2px}

/* Language switcher */
.lang-switcher{position:relative}
.lang-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.lang-button:hover,.lang-button[aria-expanded="true"]{background:var(--green-soft);border-color:var(--line)}
.lang-panel{position:absolute;right:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 32px);padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:30}
.lang-search{width:100%;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;font:inherit}
.lang-list{list-style:none;margin:6px 0 0;padding:0;max-height:min(320px,60vh);overflow:auto}
.lang-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border-radius:10px;cursor:pointer}
.lang-list li small{color:var(--muted);font-weight:600}
.lang-list li.active,.lang-list li:hover{background:var(--green-soft)}
.lang-list li[aria-selected="true"]{font-weight:700;color:var(--green)}
.lang-list .lang-empty{cursor:default;color:var(--muted)}

/* Main */
.site-main{max-width:1240px;margin:0 auto;padding:24px 16px 48px;outline:none;min-height:60vh}
.site-noscript{padding:24px;background:#fff;border-radius:var(--radius)}
.site-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-content:space-between;min-height:min(680px,calc((100vw - 48px) * .5628));overflow:hidden;padding:52px 0 34px 46px;border-radius:28px;background:#fff;box-shadow:var(--shadow);isolation:isolate}
.site-hero h1,.site-hero-copy>p{text-shadow:0 1px 12px rgba(255,255,255,.75)}
.site-hero-copy{position:relative;z-index:2;max-width:46%}
.site-hero h1{overflow-wrap:break-word;hyphens:auto;margin:0 0 16px;font-size:clamp(2rem,4.6vw,3.6rem);line-height:1.08;letter-spacing:-.02em;font-weight:850}
.site-hero h1 em{display:block;font-style:normal;color:var(--green)}
.site-hero p{margin:0;font-size:clamp(1.05rem,1.6vw,1.3rem);color:var(--muted);max-width:36em}
.site-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.site-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:12px;background:#fff;color:var(--green);font-weight:700;text-decoration:none;box-shadow:0 4px 14px rgba(20,60,30,.10)}
.site-button.primary{background:var(--green);color:#fff}
.site-button.primary:hover{background:var(--green-dark)}
.site-eyebrow{margin:0 0 12px!important;font-size:.9rem!important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--green)!important}
.site-benefits{position:relative;z-index:2;list-style:none;margin:28px 0 0;padding:0;max-width:46%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.site-benefits li{display:flex;align-items:center;gap:10px;min-width:0;padding:5px 14px 5px 5px;border-radius:28px;background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:.84rem;line-height:1.25;color:var(--ink)}
.site-benefit-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%}
.site-benefit-icon .site-icon{width:22px;height:22px;stroke:#fff}
.site-benefit-icon.green{background:#2e9d46}.site-benefit-icon.orange{background:#f39c12}.site-benefit-icon.blue{background:#2f80ed}.site-benefit-icon.violet{background:#7b3fe4}
/* Approved hero composition: the scene fills the right part of the hero and fades into white under the text; the four
   glass panels (example values) lie over the scene where the mockup has them, on a faint technology grid. */
.site-visual{position:absolute;z-index:1;inset:0;margin:0}
.site-visual::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.84) 0%,rgba(255,255,255,.7) 27%,rgba(255,255,255,.3) 43%,rgba(255,255,255,0) 55%)}
.site-visual-photo{position:absolute;inset:0}
.site-visual-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.site-metrics{position:absolute;z-index:2;left:80.5%;top:45%;width:16.8%;height:50%;margin:0;padding:0;list-style:none;display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:9px}
.site-metrics::before{content:"";position:absolute;inset:-16px -12px;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(130,205,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(130,205,255,.13) 1px,transparent 1px);background-size:18px 18px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
.site-metric{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:0;padding:6px 9px;border:1px solid rgba(160,215,255,.5);border-radius:10px;background-color:rgba(4,18,34,.3);background-image:linear-gradient(rgba(150,215,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(150,215,255,.16) 1px,transparent 1px);background-size:12px 12px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 12px rgba(80,180,255,.22);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.65)}
.site-metric .site-icon{width:16px;height:16px;stroke:#5fd47e}
.site-metric-head{display:flex;align-items:center;gap:5px;font-size:.7rem;font-weight:600;line-height:1.2}
.site-metric-head>span{min-width:0;overflow-wrap:break-word}
.site-example{margin-left:auto;flex:none;padding:0 4px;border-radius:4px;background:rgba(255,255,255,.18);font-size:.55rem;font-weight:700;letter-spacing:.02em;color:#d6e4f5}
.site-metric strong{font-size:1.05rem;line-height:1.1;font-weight:800}
.site-metric-row{display:flex;align-items:center;gap:6px}
.site-metric-bars{width:30px;height:14px}
.site-metric-line{width:100%;height:11px}
.site-metric-scale{display:block;height:3px;border-radius:2px}
.site-metric-scale.ndvi{background:linear-gradient(90deg,#e53935,#f4c430 45%,#3ddc6f)}
.site-metric-ticks{display:flex;justify-content:space-between;font-size:.56rem;color:#b9cbe0}
.site-soil{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;text-align:center}
.site-nutrient{display:flex;flex-direction:column;align-items:center;min-width:0}
.site-nutrient>span{font-size:.6rem;font-weight:700}
.site-nutrient strong{font-size:.85rem}
.site-nutrient small{font-size:.52rem;color:#b9cbe0}
.site-nutrient.n>span,.site-nutrient.n strong{color:#4fc3f7}.site-nutrient.p>span,.site-nutrient.p strong{color:#ffb74d}.site-nutrient.k>span,.site-nutrient.k strong{color:#f48fb1}
.site-visual-note{position:absolute;z-index:2;left:80.5%;width:16.8%;bottom:56.5%;margin:0;padding:5px 8px;border-radius:8px;background:rgba(6,20,40,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);font-size:.6rem;line-height:1.35;color:#e2ecf7}
.site-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:22px}
.site-card{display:flex;align-items:center;gap:14px;padding:20px;border-radius:var(--radius);background:var(--card);color:var(--ink);text-decoration:none;box-shadow:var(--shadow)}
.site-card .site-icon{width:52px;height:52px;padding:12px;border-radius:14px;background:var(--green-soft)}
.site-card strong{display:block;font-size:1.08rem}
.site-card small{display:block;color:var(--muted);font-size:.95rem}
.site-card-arrow{margin-left:auto;font-size:1.3rem;color:var(--ink)}
.site-section{margin-top:40px;padding:32px;border-radius:24px;background:#fff;box-shadow:var(--shadow)}
.site-section.narrow{max-width:820px;margin-left:auto;margin-right:auto}
.site-section h1,.site-section h2,.site-card strong{overflow-wrap:break-word;hyphens:auto}
.site-section h1{margin:0 0 10px;font-size:clamp(1.8rem,3.4vw,2.6rem);line-height:1.15}
.site-section h2{margin:0 0 16px;font-size:clamp(1.4rem,2.4vw,1.9rem)}
.site-lead{font-size:1.15rem;color:var(--muted);margin:0 0 22px}
.site-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.site-steps li{padding:18px;border-radius:16px;background:var(--bg)}
.site-steps strong{display:block;margin:10px 0 6px;font-size:1.08rem}
.site-steps p{margin:0;color:var(--muted)}
.site-step-number{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--green);color:#fff;font-weight:800}
.site-note{margin:22px 0 0;padding:14px 16px;border-left:4px solid var(--green);background:var(--green-soft);border-radius:10px;color:var(--ink)}
.site-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.site-feature{padding:20px;border-radius:16px;background:var(--bg);scroll-margin-top:110px}
.site-feature h2{margin:12px 0 8px;font-size:1.2rem}
.site-feature p{margin:0;color:var(--muted)}
.site-ndvi{margin-top:22px;padding:20px;border-radius:16px;border:1px solid var(--line)}
.site-ndvi h2{font-size:1.2rem;margin-bottom:8px}
.site-ndvi p{margin:0}
.site-draft{display:inline-block;margin:0 0 14px;padding:4px 12px;border-radius:999px;background:#fff4d6;color:#6b4e00;font-weight:700;font-size:.9rem}
#how{scroll-margin-top:110px}

/* Footer */
.site-footer{background:#14231a;color:#dce8de;padding:32px 16px 20px}
.site-footer-inner{max-width:1240px;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}
.site-footer-inner p{margin:6px 0 0;color:#b7c8bb}
.site-footer nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.site-footer a{color:#dce8de}
.site-footer-note{max-width:1240px;margin:22px auto 0;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:.9rem;color:#9fb3a4}

/* Narrow desktop: the full menu and both header buttons still fit on one line. */
@media (max-width:1240px){.site-header-inner{gap:12px}.site-nav a{padding:8px 9px}.site-login,.site-signup{padding:0 14px}}
@media (max-width:1180px){.site-header-inner{gap:8px}.site-nav a{padding:8px 6px;font-size:.95rem}.site-brand-full{height:38px}}
/* Tablet and phone */
@media (max-width:1100px){
  .site-header-inner{flex-wrap:wrap;gap:10px}
  .site-menu-toggle{display:flex;order:2;margin-left:0}
  .site-nav{order:3;flex-basis:100%;flex-direction:column;margin:0;display:none}
  .site-nav.open{display:flex}
  .site-nav a.active{box-shadow:inset 3px 0 0 var(--green)}
  .site-actions{order:1;margin-left:auto}
  .site-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-hero{aspect-ratio:auto;min-height:0;padding:32px 28px 28px;align-content:start}
  .site-hero-copy,.site-benefits{max-width:none}
  .site-visual{position:relative;inset:auto;width:calc(100% + 56px);margin:26px -28px 0;padding:36vw 4% 22px}
  .site-visual-photo img{object-position:92% center}
  .site-metrics{position:relative;left:auto;top:auto;width:auto;height:auto;max-width:440px;margin-left:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:1fr;gap:10px}
  .site-visual-note{position:relative;left:auto;top:auto;bottom:auto;width:auto;max-width:440px;margin:8px 0 0 auto}
  .site-visual::before{background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.55) 8%,rgba(255,255,255,0) 22%)}
  .site-benefits{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}
}
@media (max-width:760px){
  .site-hero{padding:24px 18px 22px}
  .site-visual{width:calc(100% + 36px);margin:22px -18px 0;padding:66vw 14px 14px}
  .site-visual-photo img{object-position:84% center}
  .site-metrics{max-width:none;margin-left:0;gap:8px}
  .site-visual-note{max-width:none;margin-left:0}
  .site-section{padding:22px 18px}
  .site-signup{display:none}
}
@media (max-width:560px){
  .site-header{padding:8px 8px 0}
  .site-header-inner{padding:8px 10px;border-radius:16px}
  .site-brand{font-size:1.05rem;gap:8px}
  .site-brand-full{height:30px}
  .site-login{min-height:44px;padding:0 14px}
  .site-metric-head{flex-wrap:wrap}
  .site-example{margin-left:0}
  .lang-button{padding:0 6px}
  .lang-caret{display:none}
  .site-cards,.site-steps,.site-feature-grid{grid-template-columns:1fr}
  .site-cta .site-button{flex:1 1 100%}
}
@media (max-width:440px){.site-brand .site-brand-full{display:none}.site-brand .site-brand-leaf{display:block}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.site-signup[hidden]{display:none!important}
