:root {
  --green: #15835f;
  --green-600: #11724f;
  --green-700: #0c5e44;
  --green-soft: #eaf6f1;
  --green-glow: rgba(21,131,95,.12);
  --ink: #0e1a15;
  --ink-2: #1c2b24;
  --muted: #5c6b64;
  --muted-2: #8a958f;
  --line: #e7ece9;
  --line-2: #f0f3f1;
  --bg: #ffffff;
  --bg-soft: #f7faf8;
  --bg-dark: #0c1410;
  --amber: #c97a16;
  --red: #c84141;
  --up: #16a06a;
  --down: #e25555;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(14,26,21,.05);
  --shadow: 0 2px 8px rgba(14,26,21,.05), 0 12px 32px rgba(14,26,21,.06);
  --shadow-lg: 0 8px 24px rgba(14,26,21,.08), 0 24px 60px rgba(14,26,21,.08);
  --maxw: 1200px;
  --header-h: 98px; /* topbar 40 + mainbar 58 (mobile) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,.display { font-family: 'Golos Text','Inter',sans-serif; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img,svg { display: block; }
svg { vertical-align: middle; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ===== Header (two-level, forkagro-style) ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* --- top bar (thin utility row) --- */
.topbar { background: var(--ink); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.82); font-weight: 500; transition: .15s; white-space: nowrap; }
.topbar-link:hover { color: #fff; }
.topbar-link svg { width: 14px; height: 14px; opacity: .8; }
.topbar-login { font-weight: 600; }
/* --- main bar (logo + nav) --- */
.mainbar { background: transparent; }
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo .logo-img { height: 30px; width: auto; display: block; }
.footer-logo .logo-img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink); padding: 9px 14px; border-radius: 9px; font-weight: 500; transition: .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--green); background: var(--bg-soft); }
.nav-links a.active { color: var(--green); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,.82); padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); cursor: pointer; font-weight: 600; font-family: inherit; }
.lang-btn:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.lang-btn svg { width: 12px; height: 12px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; min-width: 150px; display: none; }
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 10px 16px; font-size: 14.5px; color: var(--ink); }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.cur { color: var(--green); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 11px; cursor: pointer; border: 1px solid transparent; transition: .16s; white-space: nowrap; font-family: inherit; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px var(--green-glow); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline-green { background: transparent; color: #5fe3ac; border-color: transparent; }
.btn-outline-green:hover { background: transparent; border-color: transparent; color: #7ee9bd; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

/* ===== Hero (video background, forkagro-style) ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; padding: 104px 0 88px; min-height: 600px; display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(110deg, rgba(8,16,12,.92) 0%, rgba(8,16,12,.74) 38%, rgba(8,16,12,.34) 72%, rgba(8,16,12,.18) 100%),
    linear-gradient(180deg, rgba(8,16,12,.30) 0%, transparent 30%, rgba(8,16,12,.55) 100%); }
.hero-overlay::after { content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 30% 30%,#000,transparent); }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(22,160,106,.18); border: 1px solid rgba(79,214,160,.45); color: #7ee9bd; font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 99px; margin-bottom: 24px; backdrop-filter: blur(6px); }
.hero-tag svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(36px,5.6vw,62px); line-height: 1.04; margin-bottom: 20px; max-width: 780px; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 .accent { background: linear-gradient(90deg,#5fe3ac,#16a06a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 19px; color: #cdd9d3; max-width: 600px; margin-bottom: 34px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-btns { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; max-width: 920px; }
.stat-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(10px); transition: .2s; }
.stat-card:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.stat-card .num { font-family: 'Golos Text',sans-serif; font-size: 31px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.stat-card .lbl { font-size: 14px; color: #b6c4bd; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ===== Sections ===== */
.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px,3.6vw,38px); line-height: 1.12; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ===== Price table ===== */
.price-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.price-meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.price-meta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
table.prices { width: 100%; border-collapse: collapse; }
table.prices th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 600; padding: 13px 24px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
table.prices td { padding: 16px 24px; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
table.prices tr:last-child td { border-bottom: none; }
table.prices tbody tr { transition: .12s; }
table.prices tbody tr:hover td { background: var(--bg-soft); }
.crop-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.crop-ic { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.crop-ic svg { width: 21px; height: 21px; }
.price-val { font-weight: 700; font-family: 'Golos Text',sans-serif; }
.chg { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13.5px; padding: 4px 9px; border-radius: 7px; }
.chg svg { width: 14px; height: 14px; }
.chg.up { color: var(--green); background: var(--green-soft); }
.chg.down { color: var(--red); background: #fbeaea; }
.region-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.region-pill svg { width: 14px; height: 14px; color: var(--muted-2); }
.spark-cell { width: 110px; }
.spark-cell .spark { width: 96px; height: 28px; display: block; }

/* ===== LIVE prices section ===== */
.live-prices { position: relative; }
.live-prices .auto-note { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: inherit; }
.live-prices .auto-note svg { width: 13px; height: 13px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(22,160,106,.12); color: var(--up); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; }
.live-badge.lg { font-size: 13px; padding: 6px 13px; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(22,160,106,.5); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0%{box-shadow:0 0 0 0 rgba(22,160,106,.5)} 70%{box-shadow:0 0 0 6px rgba(22,160,106,0)} 100%{box-shadow:0 0 0 0 rgba(22,160,106,0)} }
.page-hero-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Ticker */
.price-ticker { overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: var(--shadow-xs); margin-bottom: 24px; position: relative; -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.tk-track { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; animation: ticker 42s linear infinite; padding: 12px 0; will-change: transform; }
.price-ticker:hover .tk-track { animation-play-state: paused; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-right: 1px solid var(--line-2); font-size: 14px; }
.tk-crop { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.tk-crop svg { width: 14px; height: 14px; color: var(--green); }
.tk-price { font-weight: 700; font-family: 'Golos Text',sans-serif; color: var(--ink-2); }
.tk-chg { font-weight: 700; font-size: 12.5px; }
.tk-chg.up { color: var(--up); }
.tk-chg.down { color: var(--down); }

/* Market summary */
.market-summary { display: grid; grid-template-columns: 1.1fr 2fr; gap: 16px; margin-bottom: 24px; }
.ms-index { background: linear-gradient(135deg,#0c1410,#14241c); color: #fff; border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.ms-index::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(circle,rgba(22,160,106,.35),transparent 70%); }
.ms-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #8fb3a4; font-weight: 600; }
.ms-label svg { width: 14px; height: 14px; }
.ms-value { font-family: 'Golos Text',sans-serif; font-weight: 800; font-size: 42px; line-height: 1.1; margin: 8px 0 4px; letter-spacing: -.02em; transition: color .4s; }
.ms-chg { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.ms-chg svg { width: 15px; height: 15px; }
.ms-chg.up { color: #4fd6a0; }
.ms-chg.down { color: #ff8585; }
.ms-per { color: #7e948c; font-weight: 500; }
.ms-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ms-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-xs); transition: .15s; }
.ms-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ms-num { font-family: 'Golos Text',sans-serif; font-weight: 800; font-size: 34px; line-height: 1; }
.ms-cap { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.ms-cap svg { width: 13px; height: 13px; }
.ms-stat.up .ms-num { color: var(--up); } .ms-stat.up .ms-cap svg { color: var(--up); }
.ms-stat.down .ms-num { color: var(--down); } .ms-stat.down .ms-cap svg { color: var(--down); }
.ms-stat.neutral .ms-num { color: var(--ink-2); } .ms-stat.neutral .ms-cap svg { color: var(--muted-2); }

/* Live price cards */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(248px,1fr)); gap: 16px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); transition: .18s; position: relative; overflow: hidden; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(21,131,95,.3); }
.lp-card.flash-up { animation: flashup .9s ease; }
.lp-card.flash-down { animation: flashdown .9s ease; }
@keyframes flashup { 0%{background:rgba(22,160,106,.1)} 100%{background:#fff} }
@keyframes flashdown { 0%{background:rgba(226,85,85,.1)} 100%{background:#fff} }
.lp-top { display: flex; align-items: flex-start; gap: 11px; }
.lp-ic { width: 40px; height: 40px; min-width: 40px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.lp-ic svg { width: 22px; height: 22px; }
.lp-name { flex: 1; min-width: 0; }
.lp-name h3 { font-size: 16px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-region { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted-2); }
.lp-region svg { width: 12px; height: 12px; }
.lp-spark { margin: 12px -4px 6px; height: 40px; }
.lp-spark .spark { width: 100%; height: 40px; display: block; }
.lp-bottom { display: flex; align-items: center; justify-content: space-between; }
.lp-price { font-family: 'Golos Text',sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.01em; transition: color .3s; }
.lp-price.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.08)} 100%{transform:scale(1)} }
.lp-tick { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--up); text-transform: uppercase; letter-spacing: .03em; }

/* ===== Catalog (sidebar layout) ===== */
.catalog-section { padding-top: 40px; }
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }

/* Sidebar */
.cat-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cat-sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.filter-opts-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.filter-opts-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cat-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cat-sidebar-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; font-family: 'Inter',sans-serif; color: var(--ink); }
.cat-sidebar-head h3 svg { width: 18px; height: 18px; color: var(--green); }
.filter-reset { background: none; border: none; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 4px 6px; border-radius: 7px; transition: .15s; }
.filter-reset:hover { background: var(--green-soft); }

/* Search */
.filter-search { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; margin-bottom: 22px; transition: .15s; }
.filter-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); background: #fff; }
.filter-search svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.filter-search input { border: none; background: none; outline: none; padding: 11px 0; font-size: 14px; width: 100%; font-family: inherit; color: var(--ink); }
.filter-search input::placeholder { color: var(--muted-2); }

/* Groups */
.filter-group { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 12px; }
.filter-opts { display: flex; flex-direction: column; gap: 2px; }
.filter-opts-scroll { max-height: 210px; overflow-y: auto; padding-right: 4px; }

/* Filter option (radio / checkbox row) */
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; cursor: pointer; transition: .13s; position: relative; user-select: none; }
.filter-opt:hover { background: var(--bg-soft); }
.filter-opt input { position: absolute; opacity: 0; pointer-events: none; }
.filter-opt .fo-ic { display: inline-flex; color: var(--muted-2); transition: .13s; }
.filter-opt .fo-ic svg { width: 17px; height: 17px; }
.filter-opt .fo-label { font-size: 14px; color: var(--muted); font-weight: 500; transition: .13s; flex: 1; line-height: 1.3; }
.filter-opt .fo-count { font-size: 12px; font-weight: 600; color: var(--muted-2); background: var(--bg-soft); border-radius: 99px; padding: 2px 9px; min-width: 26px; text-align: center; transition: .13s; }
/* checkbox visual box */
.filter-opt .fo-check { width: 18px; height: 18px; min-width: 18px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-grid; place-items: center; transition: .13s; color: #fff; }
.filter-opt .fo-check svg { width: 12px; height: 12px; opacity: 0; transition: .13s; }
.filter-opt .fo-check-up { border-color: var(--up); color: var(--up); }
.filter-opt .fo-check-up svg { opacity: 1; }
.filter-opt .fo-check-down { border-color: var(--down); color: var(--down); }
.filter-opt .fo-check-down svg { opacity: 1; }
/* checked states */
.filter-opt input:checked ~ .fo-label { color: var(--green); font-weight: 600; }
.filter-opt input:checked ~ .fo-ic { color: var(--green); }
.filter-opt input[type="checkbox"]:checked ~ .fo-check { background: var(--green); border-color: var(--green); }
.filter-opt input[type="checkbox"]:checked ~ .fo-check svg { opacity: 1; }
.filter-opt input[type="radio"]:checked ~ .fo-count { background: var(--green-soft); color: var(--green); }
.filter-opt:has(input:checked) { background: var(--green-soft); }
.filter-opt:has(input:checked):hover { background: var(--green-soft); }

/* Main column */
.catalog-main { min-width: 0; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.catalog-count { font-size: 14.5px; color: var(--muted); }
.catalog-count b { color: var(--ink); font-weight: 700; font-size: 16px; }
.catalog-grid { margin-bottom: 0; }

/* Empty state */
.catalog-empty { text-align: center; padding: 70px 20px; }
.catalog-empty .ce-ic { width: 78px; height: 78px; border-radius: 50%; background: var(--bg-soft); color: var(--muted-2); display: grid; place-items: center; margin: 0 auto 18px; }
.catalog-empty .ce-ic svg { width: 40px; height: 40px; }
.catalog-empty h3 { font-size: 19px; margin-bottom: 6px; font-family: 'Inter',sans-serif; }
.catalog-empty p { color: var(--muted); font-size: 14.5px; }

/* Mobile filter toggle */
.filter-toggle { display: none; align-items: center; gap: 9px; width: 100%; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; margin-bottom: 20px; transition: .15s; }
.filter-toggle svg { width: 18px; height: 18px; color: var(--green); }
.filter-toggle:hover { border-color: var(--green); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .2s; }
.product-card:hover { border-color: rgba(21,131,95,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.product-card .ic svg { width: 27px; height: 27px; }
.product-card h3 { font-size: 18px; margin-bottom: 5px; font-family: 'Inter',sans-serif; font-weight: 600; }
.product-card .region { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.product-card .region svg { width: 15px; height: 15px; color: var(--muted-2); }
.product-card .pr { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.product-card .pr .v { font-weight: 700; color: var(--green); font-family: 'Golos Text',sans-serif; font-size: 19px; }

/* ===== Services ===== */
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: .2s; }
.svc-card:hover { border-color: rgba(21,131,95,.4); box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-card .ic { width: 58px; height: 58px; border-radius: 15px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card .ic svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 19px; margin-bottom: 8px; font-family: 'Inter',sans-serif; font-weight: 600; }
.svc-card p { color: var(--muted); font-size: 15px; }

/* ===== News ===== */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.news-card:hover { border-color: rgba(21,131,95,.4); box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card .cover { height: 168px; background: linear-gradient(135deg,var(--bg-dark),#13241b); color: #34d399; display: grid; place-items: center; position: relative; overflow: hidden; }
.news-card .cover::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 26px 26px; }
.news-card .cover svg { width: 52px; height: 52px; position: relative; z-index: 2; stroke-width: 1.4; }
.news-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-cat { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 7px; margin-bottom: 12px; }
.news-card h3 { font-size: 17.5px; line-height: 1.34; margin-bottom: 14px; font-family: 'Inter',sans-serif; font-weight: 600; flex: 1; }
.news-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.news-meta svg { width: 14px; height: 14px; }

/* ===== Feature row (why us) ===== */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic { width: 46px; height: 46px; min-width: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.feat .ic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 17px; margin-bottom: 4px; font-family: 'Inter',sans-serif; font-weight: 600; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ===== CTA ===== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg,var(--green-700),var(--green)); color: #fff; border-radius: var(--radius-lg); padding: 56px 44px; text-align: center; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 300px at 80% 0%,rgba(255,255,255,.14),transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(26px,3.6vw,38px); margin-bottom: 12px; }
.cta-band p { font-size: 18px; opacity: .94; margin-bottom: 28px; }
.cta-band .hero-btns { justify-content: center; margin-bottom: 0; }

/* ===== Trust strip (logos / quick stats under hero) ===== */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.trust-item .ic svg { width: 21px; height: 21px; }
.trust-item .tx b { display: block; font-family: 'Golos Text',sans-serif; font-size: 18px; color: var(--ink); }
.trust-item .tx span { font-size: 13px; color: var(--muted); }

/* ===== Marketplace-style product card (forkagro) ===== */
.mkt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.mkt-card:hover { border-color: rgba(21,131,95,.4); box-shadow: var(--shadow); transform: translateY(-4px); }
.mkt-card .mkt-media { position: relative; height: 132px; background: linear-gradient(135deg,var(--green-soft),#dff0e9); display: grid; place-items: center; color: var(--green); overflow: hidden; }
.mkt-card .mkt-media svg { width: 46px; height: 46px; stroke-width: 1.5; position: relative; z-index: 2; }
.mkt-card .mkt-media::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(21,131,95,.07) 1.5px,transparent 1.5px); background-size: 16px 16px; }
.mkt-card .mkt-tag { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #fff; color: var(--green); padding: 4px 9px; border-radius: 7px; box-shadow: var(--shadow-xs); }
.mkt-card .mkt-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.mkt-card h3 { font-size: 16.5px; font-family: 'Inter',sans-serif; font-weight: 600; margin-bottom: 5px; }
.mkt-card .mkt-region { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.mkt-card .mkt-region svg { width: 14px; height: 14px; color: var(--muted-2); }
.mkt-card .mkt-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.mkt-card .mkt-price { font-weight: 800; font-family: 'Golos Text',sans-serif; font-size: 18px; color: var(--ink); }
.mkt-card .mkt-price small { color: var(--muted); font-weight: 500; font-size: 12.5px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #9aa8a2; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid .logo { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 14.5px; color: #93a39c; max-width: 300px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 16px; font-family: 'Inter',sans-serif; font-weight: 600; }
.footer-col a, .footer-col .fline { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #93a39c; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-col .fline svg, .footer-col a svg { width: 15px; height: 15px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #6f7d77; }

/* ===== Generic page ===== */
.page-hero { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; padding: 56px 0; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 85% -20%,rgba(21,131,95,.32),transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(28px,4.2vw,44px); color: #fff; }
.page-hero p { color: #aab8b1; font-size: 17.5px; margin-top: 10px; }
.breadcrumb { font-size: 14px; color: #8a958f; margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.breadcrumb a { color: #aab8b1; }
.breadcrumb a:hover { color: #34d399; }

/* ===== Form ===== */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.input, .textarea, select.input { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; font-size: 15.5px; font-family: inherit; background: #fff; color: var(--ink); }
.input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.textarea { min-height: 130px; resize: vertical; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.info-card .ic { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.info-card .ic svg { width: 23px; height: 23px; }
.info-card h3 { font-size: 16px; margin-bottom: 3px; font-family: 'Inter',sans-serif; font-weight: 600; }
.info-card p { color: var(--muted); font-size: 15px; }

.alert { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 11px; font-size: 14.5px; margin-bottom: 18px; }
.alert svg { width: 18px; height: 18px; }
.alert.ok { background: var(--green-soft); color: var(--green-700); }
.alert.err { background: #fbeaea; color: #b53636; }

.article-body { font-size: 17px; color: var(--ink-2); line-height: 1.85; }
.article-lead { font-size: 20px; font-weight: 500; margin-bottom: 22px; }
.article-ic { width: 88px; height: 88px; border-radius: 22px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 28px; }
.article-ic svg { width: 44px; height: 44px; stroke-width: 1.4; }

/* ===== Mobile ===== */
.mobile-drawer { display: none; }
@media (max-width: 980px) {
  .container { padding: 0 18px; }
  .nav { height: 58px; }
  .logo .logo-img { height: 26px; }
  .nav-links { display: none; }
  .topbar-login { display: none; }
  .topbar-right .btn { display: none; }
  .burger { display: flex; width: 42px; height: 42px; margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .market-summary { grid-template-columns: 1fr; }
  .ms-stats { grid-template-columns: repeat(3,1fr); }
  .section-head .row { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Modern slide-down drawer (below header). Drawer is OUTSIDE <header> so position:fixed anchors to viewport */
  .mobile-drawer.open { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 59; background: #fff; padding: 14px 18px calc(env(safe-area-inset-bottom,0px) + 24px); overflow-y: auto; border-top: 1px solid var(--line); animation: drawerIn .22s ease; -webkit-overflow-scrolling: touch; }
  @keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .mobile-drawer a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); }
  .mobile-drawer a:not(.btn) svg { color: var(--muted-2); width: 16px; height: 16px; }
  .mobile-drawer a:not(.btn):active { color: var(--green); }
  .mobile-drawer .btn { width: 100%; margin-top: 12px; padding: 14px; font-size: 16px; }
  .mobile-drawer .btn:first-of-type { margin-top: 22px; }
  body.no-scroll { overflow: hidden; }

  /* Catalog: sidebar becomes off-canvas */
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: flex; }
  .cat-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 86vw; max-height: none; height: 100%; z-index: 70; border-radius: 0; border: none; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto; padding-top: 22px; }
  .cat-sidebar.open { transform: translateX(0); }
  .cat-backdrop { position: fixed; inset: 0; background: rgba(12,20,16,.5); z-index: 69; opacity: 0; visibility: hidden; transition: .28s; }
  .cat-backdrop.open { opacity: 1; visibility: visible; }
}
@media (max-width: 760px) {
  .container .grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; gap: 26px !important; }
  .trust-row { gap: 16px; }
  .trust-item { flex: 1 1 42%; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 76px 0 56px; min-height: 540px; }
  .hero h1 { font-size: clamp(30px,8vw,40px); }
  .hero-sub { font-size: 16.5px; }
  .hero-btns { gap: 10px; margin-bottom: 36px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px 16px; }
  .stat-card .num { font-size: 25px; }
  .ms-stats { grid-template-columns: 1fr; }
  .ms-value { font-size: 36px; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 24px; }
  .lp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lp-card { padding: 14px; }
  .lp-price { font-size: 18px; }
  table.prices th:nth-child(4), table.prices td:nth-child(4) { display: none; }
  table.prices th, table.prices td { padding: 13px 14px; font-size: 14px; }
  .cta-band { padding: 38px 22px; }
  .topbar-hide-sm { display: none; }
  .topbar-inner { height: 38px; }
  .topbar-left, .topbar-right { gap: 12px; }
  .topbar-link { font-size: 12px; }
  :root { --header-h: 96px; } /* topbar 38 + mainbar 58 */
  .svc-card, .product-card { padding: 20px; }
  .mkt-card .mkt-media { height: 110px; }
}
@media (max-width: 380px) {
  .grid-4, .grid-3, .lp-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
