/* ═══════════════════════════════════════════════════════════════
   TradeAgro — Главные стили
   Тема: тёмный фон + зелёный акцент (стиль FORMA)
═══════════════════════════════════════════════════════════════ */

/* ════ RESET & BASE ════ */
html { background: #07071a; color: #f1f5f9; font-family: 'Inter', sans-serif; margin: 0; padding: 0; -webkit-overflow-scrolling: touch; }
body { overflow-x: hidden; max-width: 100vw; background: #07071a; color: #f1f5f9; font-family: 'Inter', sans-serif; margin: 0; padding: 0; -webkit-overflow-scrolling: touch; }
* { min-width: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ════ CSS VARS ════ */
:root {
  --accent-h: 142; --accent-s: 65%; --accent-l: 42%;
  --acc: hsl(142, 65%, 42%);
  --acc2: hsl(142, 65%, 58%);
  --acc3: hsl(142, 65%, 72%);
  --acc-rgb: 28, 164, 86;
  --acc-dark: hsl(142, 65%, 28%);
  --bg:  #07071a;
  --bg2: #0a0f1e;
  --bg3: #0f1628;
  --bg4: #131d2e;
  --text1: #f1f5f9;
  --text2: #94a3b8;
  --text3: #475569;
  --border:  rgba(28, 164, 86, .18);
  --border2: rgba(28, 164, 86, .35);
  --radius: 16px;
  --font: 'Inter', sans-serif;
  --grad-btn: linear-gradient(135deg, hsl(142,65%,28%), hsl(142,65%,46%));
  --grad-hero: linear-gradient(135deg, rgba(7,7,26,.88) 0%, rgba(7,7,26,.5) 60%, rgba(7,7,26,.2) 100%);
  --shadow-card: 0 8px 32px rgba(0,0,0,.45);
  --shadow-btn:  0 8px 28px rgba(var(--acc-rgb),.35);
}

/* ════ PARTICLES ════ */
#particles-canvas {
  display: none;
}

/* ════ SCROLLBAR ════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(var(--acc-rgb),.4); border-radius: 3px; }

/* ════ CONTAINER ════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ════ HEADER ════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 0; transition: all .3s;
  background: transparent; border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,7,26,.96);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 12px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.1rem; color: var(--text1);
  flex-shrink: 0; letter-spacing: .02em;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--grad-btn);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.05rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.01em; }
.logo-agro { color: var(--acc); }
.logo-sub { display: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: 28px;
}
.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text2);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2);
}

/* ── Дропдаун «Переработчикам» ───────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text2);
  background: none; border: none; cursor: pointer;
  font-family: var(--font); transition: all .2s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2);
}
.nav-dropdown-btn.active {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2);
}
.nav-dropdown-btn .dd-arrow {
  font-size: .6rem;
  transition: transform .2s;
  opacity: .6;
}
.nav-dropdown.open .nav-dropdown-btn .dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid rgba(var(--acc-rgb),.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-width: 220px;
  overflow: hidden;
  z-index: 200;
  padding: 6px;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text2);
  transition: all .15s; text-decoration: none;
}
.nav-dropdown-menu a:hover {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2);
}
.nav-dropdown-menu a.active {
  background: rgba(var(--acc-rgb),.15);
  color: var(--acc2);
}
.nav-dropdown-menu .dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.nav-dropdown-menu .dd-icon.grain {
  background: rgba(28,164,86,.15);
}
.nav-dropdown-menu .dd-icon.meat {
  background: rgba(220,38,38,.15);
}
.nav-dropdown-menu .dd-label { line-height: 1.2; }
.nav-dropdown-menu .dd-sub {
  font-size: .72rem; font-weight: 400; color: var(--text3);
  display: block; margin-top: 1px;
}

/* Мобильное меню — подменю */
.mm-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid rgba(var(--acc-rgb),.2);
  margin: 2px 0 4px 14px;
}
.mm-submenu.open { display: flex; }
.mm-submenu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text2);
  transition: all .15s;
}
.mm-submenu a:hover, .mm-submenu a.active {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2);
}
.mm-parent-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  font-size: .93rem; font-weight: 600; color: var(--text1);
  background: none; border: none; cursor: pointer;
  font-family: var(--font); width: 100%; text-align: left;
  transition: all .2s;
}
.mm-parent-btn:hover, .mm-parent-btn.open {
  background: rgba(var(--acc-rgb),.1);
  color: var(--acc2);
}
.mm-parent-btn .dd-arrow {
  margin-left: auto; font-size: .65rem;
  transition: transform .2s; opacity: .5;
}
.mm-parent-btn.open .dd-arrow { transform: rotate(180deg); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Переключатель языков */
.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(var(--acc-rgb),.25);
  background: rgba(var(--acc-rgb),.06);
  color: var(--text2); font-size: .72rem; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: var(--font);
  letter-spacing: .04em;
}
.lang-btn.active, .lang-btn:hover {
  background: rgba(var(--acc-rgb),.2);
  color: var(--acc2);
  border-color: rgba(var(--acc-rgb),.45);
}
.header-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }

/* CTA кнопка в хедере */
.btn-header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  background: var(--grad-btn); color: #fff;
  font-size: .82rem; font-weight: 700; border: none;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  text-decoration: none;
}
.btn-header-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn); }

/* Авторизация в хедере */
.btn-header-auth {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 50px;
  border: 1.5px solid rgba(var(--acc-rgb),.35);
  background: rgba(var(--acc-rgb),.06);
  color: var(--text1); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-header-auth:hover { background: rgba(var(--acc-rgb),.14); border-color: var(--acc2); color: var(--acc2); }

/* Бургер */
.burger-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.burger-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text1); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════ MOBILE MENU ════ */
.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 85%; max-width: 320px; height: 100vh;
  background: var(--bg2); z-index: 2000;
  transition: right .32s cubic-bezier(.4,0,.2,1);
  padding: 80px 20px 24px; overflow-y: auto;
  border-left: 1px solid var(--border);
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: none;
}
.mobile-overlay.open { display: block; }
.mobile-close {
  position: fixed; top: 16px; right: 16px; z-index: 2100;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--text2); font-size: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: all .2s;
}
.mobile-menu.open ~ .mobile-close, .mobile-close.visible { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  color: var(--text1); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: all .2s; margin-bottom: 2px;
}
.mobile-menu a:hover {
  background: rgba(var(--acc-rgb),.1);
  border-color: rgba(var(--acc-rgb),.2);
  color: var(--acc2);
}
.mm-divider { height: 1px; background: var(--border); margin: 16px 0; }
.mm-lang-row { display: flex; gap: 6px; margin-top: 12px; }

/* ════ BUTTONS ════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .25s;
  border: none; font-family: var(--font); text-decoration: none;
}
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(var(--acc-rgb),.5); }
.btn-outline {
  background: rgba(255,255,255,.06); color: var(--text1);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.btn-wa { background: linear-gradient(135deg,#25d366,#128c7e); color: #fff; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.4); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-xs { padding: 6px 14px; font-size: .76rem; border-radius: 8px; }
.pulse { animation: pulseShadow 2.5s ease-in-out infinite; }
@keyframes pulseShadow {
  0%,100% { box-shadow: var(--shadow-btn); }
  50% { box-shadow: 0 8px 50px rgba(var(--acc-rgb),.65); }
}

/* ════ HERO ════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: .55; transition: opacity 1s;
  will-change: auto;
  transform: translateZ(0);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.hero-bg-glow {
  position: absolute; top: 15%; left: 35%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(var(--acc-rgb),.13) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; padding: 60px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: rgba(var(--acc-rgb),.12);
  border: 1px solid rgba(var(--acc-rgb),.3);
  color: var(--acc2); font-size: .78rem; font-weight: 700;
  margin-bottom: 20px; letter-spacing: .04em;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  margin: 0 0 18px; color: #fff;
}
.accent-line {
  display: block;
  background: linear-gradient(135deg, var(--acc), var(--acc3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.75; margin: 0 0 28px; max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* Hero поиск */
.hero-search {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 20px;
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}
.hero-search-title { font-size: .78rem; color: var(--acc2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero-search-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }
.search-select, .search-input {
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
  color: var(--text1); font-size: .88rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.search-select:focus, .search-input:focus { border-color: var(--acc2); }
.search-select option { background: var(--bg3); }

/* Hero статистика */
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.hero-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 12px; text-align: center;
  transition: border-color .2s;
}
.hero-stat:hover { border-color: rgba(var(--acc-rgb),.35); }
.hero-stat .s-val { font-size: 1.6rem; font-weight: 900; color: var(--acc2); }
.hero-stat .s-lbl { font-size: .7rem; color: var(--text2); margin-top: 4px; line-height: 1.3; }

/* Hero правая колонка */
.hero-right { position: relative; }
.hero-visual {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  position: relative;
}
.hero-map-img { width: 100%; height: 380px; object-fit: cover; display: block; }
.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,26,.85) 0%, transparent 55%);
}
.hero-visual-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; }
.hero-float-card {
  position: absolute; top: 20px; right: 20px;
  background: rgba(7,7,26,.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border2); border-radius: 14px;
  padding: 14px 18px; min-width: 160px;
}
.hfc-label { font-size: .68rem; color: var(--text2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hfc-val { font-size: 1.25rem; font-weight: 900; color: var(--acc2); margin-top: 2px; }
.hfc-sub { font-size: .72rem; color: var(--text2); margin-top: 2px; }

/* ════ STATS STRIP ════ */
.stats-strip {
  padding: 44px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
}
.stats-strip-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; text-align: center;
}
.stat-item .sn { font-size: 2.4rem; font-weight: 900; color: var(--acc2); }
.stat-item .sl { font-size: .8rem; color: var(--text2); margin-top: 4px; }

/* ════ SECTIONS ════ */
.section { padding: 80px 0; position: relative; z-index: 2; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(var(--acc-rgb),.1);
  border: 1px solid rgba(var(--acc-rgb),.25);
  color: var(--acc2); font-size: .73rem; font-weight: 800;
  letter-spacing: .1em; margin-bottom: 14px; text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 900; margin: 0 0 12px; color: var(--text1);
}
.section-header p { font-size: 1rem; color: var(--text2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ════ AD CARDS — карточки объявлений ════ */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ad-verified-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(28,164,86,.92), rgba(16,120,60,.92));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(28,164,86,.5);
  border-radius: 20px;
  font-size: .68rem; font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(28,164,86,.3);
  pointer-events: none;
}
.ad-verified-badge i { font-size: .65rem; }

.ad-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  position: relative;
}
.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border-color: rgba(var(--acc-rgb),.4);
}
.ad-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--bg3); display: block;
  position: relative;
}
.ad-card-img-placeholder {
  width: 100%; height: 180px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.ad-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.ad-card-type {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.type-sell { background: rgba(28,164,86,.15); color: var(--acc2); border: 1px solid rgba(28,164,86,.3); }
.type-buy  { background: rgba(59,130,246,.12); color: #60a5fa; border: 1px solid rgba(59,130,246,.28); }
.ad-card-title { font-size: 1rem; font-weight: 700; color: var(--text1); margin: 0 0 6px; line-height: 1.3; }
.ad-card-crop { font-size: .82rem; color: var(--text2); margin-bottom: 12px; }
.ad-card-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ad-card-price { font-size: 1.15rem; font-weight: 900; color: var(--acc2); }
.ad-card-price-sub { font-size: .72rem; color: var(--text2); margin-top: 1px; }
.ad-card-region { font-size: .78rem; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.ad-card-volume { font-size: .82rem; color: var(--text2); margin-top: 4px; }

/* Бейдж с файлами */
.ad-has-file {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(var(--acc-rgb),.1);
  border: 1px solid rgba(var(--acc-rgb),.25);
  color: var(--acc2); font-size: .68rem; font-weight: 600;
  margin-top: 6px;
}

/* ════ CROPS GRID — список культур ════ */
.crops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.crop-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 16px;
  text-align: center; cursor: pointer;
  transition: all .25s; text-decoration: none; color: inherit;
}
.crop-card:hover, .crop-card.active {
  background: rgba(var(--acc-rgb),.1);
  border-color: rgba(var(--acc-rgb),.45);
  transform: translateY(-3px);
}
.crop-card-icon { font-size: 2.2rem; margin-bottom: 8px; }
.crop-card-name { font-size: .85rem; font-weight: 700; color: var(--text1); }
.crop-card-group { font-size: .7rem; color: var(--text2); margin-top: 4px; }

/* ════ HOW IT WORKS ════ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.step-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; position: relative; overflow: hidden;
  transition: border-color .3s;
}
.step-card:hover { border-color: rgba(var(--acc-rgb),.4); }
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-btn);
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(var(--acc-rgb),.12);
  border: 2px solid rgba(var(--acc-rgb),.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: var(--acc2);
  margin: 0 auto 18px;
}
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-title { font-size: 1rem; font-weight: 800; color: var(--text1); margin-bottom: 10px; }
.step-desc { font-size: .87rem; color: var(--text2); line-height: 1.65; }

/* ════ NEWS CARDS ════ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 20px; }
.news-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, border-color .3s;
  text-decoration: none; color: inherit;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(var(--acc-rgb),.4); }
.news-card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg3); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: .72rem; color: var(--acc2); font-weight: 700; letter-spacing: .05em; margin-bottom: 8px; }
.news-card-title { font-size: 1rem; font-weight: 800; color: var(--text1); line-height: 1.35; margin-bottom: 8px; }
.news-card-text { font-size: .85rem; color: var(--text2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ════ FILTERS ════ */
.filters-bar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  margin-bottom: 28px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.filter-label { font-size: .72rem; color: var(--text2); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.filter-select, .filter-input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text1); font-size: .88rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.filter-select:focus, .filter-input:focus { border-color: var(--acc2); }
.filter-select option { background: var(--bg3); }

/* Теги культур в фильтре */
.crop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.crop-tag {
  padding: 6px 14px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.crop-tag:hover, .crop-tag.active {
  background: rgba(var(--acc-rgb),.15);
  border-color: rgba(var(--acc-rgb),.4);
  color: var(--acc2);
}

/* ════ PAGINATION ════ */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: var(--font);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active {
  background: rgba(var(--acc-rgb),.15);
  border-color: rgba(var(--acc-rgb),.4);
  color: var(--acc2);
}

/* ════ FORMS ════ */
.form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .8rem; color: var(--text2); font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.form-label span.req { color: var(--acc2); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  color: var(--text1); font-size: .92rem; font-family: var(--font);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--acc2);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.12);
}
.form-select option { background: var(--bg3); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .76rem; color: var(--text3); margin-top: 6px; }
.form-error { font-size: .76rem; color: #f87171; margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* Upload area */
.upload-area {
  border: 2px dashed rgba(var(--acc-rgb),.3);
  border-radius: 14px; padding: 32px;
  text-align: center; cursor: pointer;
  transition: all .25s; background: rgba(var(--acc-rgb),.04);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--acc2);
  background: rgba(var(--acc-rgb),.1);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-text { font-size: .9rem; color: var(--text2); }
.upload-sub { font-size: .76rem; color: var(--text3); margin-top: 4px; }
.upload-file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.upload-file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: .85rem;
}
.upload-file-icon { font-size: 1.2rem; }
.upload-file-name { flex: 1; color: var(--text1); font-weight: 600; }
.upload-file-size { color: var(--text3); font-size: .76rem; }
.upload-file-remove { color: #f87171; cursor: pointer; font-size: 1rem; transition: color .2s; }
.upload-file-remove:hover { color: #ef4444; }

/* ════ AUTH MODAL ════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity .3s; overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 24px; padding: 32px 28px; width: 100%; max-width: 420px;
  transform: scale(.95); transition: transform .3s;
  position: relative; margin: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--text2); font-size: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { color: var(--text1); border-color: rgba(var(--acc-rgb),.4); }
.modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; justify-content: center; }
.modal-title { font-size: 1.3rem; font-weight: 900; color: var(--text1); text-align: center; margin-bottom: 6px; }
.modal-title .logo-agro { color: var(--acc); }
.modal-sub { font-size: .87rem; color: var(--text2); text-align: center; margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--bg3); border-radius: 12px; padding: 4px; margin-bottom: 24px; gap: 4px; }
.auth-tab {
  flex: 1; padding: 9px; border-radius: 9px;
  border: none; background: none;
  color: var(--text2); font-size: .87rem; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: var(--font);
}
.auth-tab.active { background: var(--grad-btn); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.phone-input-wrap { display: flex; gap: 8px; }
.phone-code {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px;
  color: var(--text1); font-size: .9rem; font-weight: 700;
  width: 80px; flex-shrink: 0; text-align: center;
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: .76rem; color: var(--text3); }

/* ════ DASHBOARD ════ */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 28px; padding-top: 90px; min-height: 100vh;
}
.dashboard-sidebar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; height: fit-content;
  position: sticky; top: 90px;
}
.dash-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.dash-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 12px;
  border: 3px solid rgba(var(--acc-rgb),.3);
}
.dash-name { font-size: 1rem; font-weight: 800; color: var(--text1); margin-bottom: 4px; }
.dash-role { font-size: .76rem; color: var(--acc2); font-weight: 600; }
.dash-phone { font-size: .8rem; color: var(--text2); margin-top: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--text2); font-size: .9rem; font-weight: 600;
  transition: all .2s; margin-bottom: 2px;
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(var(--acc-rgb),.12);
  color: var(--acc2); border-left: 3px solid var(--acc);
  padding-left: 11px;
}
.dash-nav a i { width: 20px; text-align: center; }
.dash-content { }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dash-title { font-size: 1.4rem; font-weight: 900; color: var(--text1); }

/* Таблица объявлений в кабинете */
.my-ads-table { width: 100%; border-collapse: collapse; }
.my-ads-table th {
  text-align: left; padding: 12px 16px;
  font-size: .75rem; color: var(--text2); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.my-ads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(var(--acc-rgb),.08);
  font-size: .88rem; color: var(--text1);
}
.my-ads-table tr:hover td { background: rgba(var(--acc-rgb),.04); }
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700;
}
.status-active   { background: rgba(28,164,86,.15); color: var(--acc2); }
.status-pending  { background: rgba(245,158,11,.12); color: #fbbf24; }
.status-inactive { background: rgba(239,68,68,.1); color: #f87171; }

/* Stats cards */
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.dsc-label { font-size: .75rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.dsc-val { font-size: 2rem; font-weight: 900; color: var(--acc2); }
.dsc-sub { font-size: .76rem; color: var(--text3); margin-top: 4px; }

/* ════ LISTING PAGE ════ */
.listing-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-top: 100px; }
.listing-gallery { border-radius: 20px; overflow: hidden; margin-bottom: 24px; }
.listing-gallery img { width: 100%; height: 380px; object-fit: cover; }
.listing-img-placeholder {
  width: 100%; height: 380px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.listing-title { font-size: 1.8rem; font-weight: 900; color: var(--text1); margin-bottom: 12px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.listing-meta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text2);
}
.listing-desc { font-size: .95rem; color: var(--text2); line-height: 1.75; margin-bottom: 24px; }

/* Файлы объявления */
.listing-files { margin-bottom: 24px; }
.listing-files-title { font-size: .85rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.file-download-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(var(--acc-rgb),.08); border: 1px solid rgba(var(--acc-rgb),.25);
  color: var(--text1); font-size: .87rem; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
  margin-bottom: 8px;
}
.file-download-btn:hover { background: rgba(var(--acc-rgb),.18); border-color: rgba(var(--acc-rgb),.45); color: var(--acc2); }

/* Sidebar карточка продавца */
.seller-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
  position: sticky; top: 90px;
}
.seller-card-price { font-size: 2rem; font-weight: 900; color: var(--acc2); margin-bottom: 4px; }
.seller-card-price-sub { font-size: .82rem; color: var(--text2); margin-bottom: 20px; }
.seller-info { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.seller-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.seller-name { font-size: .92rem; font-weight: 700; color: var(--text1); }
.seller-phone { font-size: .8rem; color: var(--text2); margin-top: 2px; }
.seller-card-btns { display: flex; flex-direction: column; gap: 10px; }

/* ════ TOAST уведомления ════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: toastIn .3s ease;
}
.toast.success { border-color: rgba(var(--acc-rgb),.4); }
.toast.error   { border-color: rgba(239,68,68,.4); }
.toast-icon { font-size: 1.3rem; }
.toast-msg { font-size: .87rem; color: var(--text1); font-weight: 600; flex: 1; }
@keyframes toastIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ════ LOADER ════ */
.loader {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 60px;
}
.loader-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--acc);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: .88rem; color: var(--text2); }

/* ════ EMPTY STATE ════ */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-title { font-size: 1.2rem; font-weight: 800; color: var(--text1); margin-bottom: 8px; }
.empty-desc { font-size: .9rem; color: var(--text2); max-width: 360px; margin: 0 auto 20px; }

/* ════ FOOTER ════ */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 60px 0 30px; position: relative; z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc { font-size: .87rem; color: var(--text2); line-height: 1.7; max-width: 280px; }
.footer-title { font-size: .82rem; font-weight: 800; color: var(--text1); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .87rem; color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--acc2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--text3); transition: color .2s; }
.footer-bottom a:hover { color: var(--acc2); }

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
  .dashboard-layout { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .listing-layout { grid-template-columns: 1fr; }
  .seller-card { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .hero-search-row { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none !important; }
  .burger-btn { display: flex; }
  /* Скрываем языки и кнопку войти — остаётся только бургер и CTA */
  .lang-switcher { display: none !important; }
  .header-divider { display: none !important; }
  .btn-header-auth { display: none !important; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .stats-strip-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-search-row { grid-template-columns: 1fr; }
  .ads-grid { grid-template-columns: 1fr; }
  .crops-grid { grid-template-columns: repeat(3,1fr); }
  .dash-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* На маленьких — скрываем текст в CTA кнопке, оставляем только иконку */
  .btn-header-cta span { display: none; }
  .btn-header-cta { padding: 9px 12px; border-radius: 10px; }
  .modal { padding: 28px 20px; }
  .form-card { padding: 22px; }
  /* Хедер: лого компактнее */
  .logo-name { font-size: .88rem; }
  .logo-sub  { display: none; }
  .logo-icon { width: 34px; height: 34px; font-size: 16px; }
}
@media (max-width: 400px) {
  .crops-grid { grid-template-columns: repeat(2,1fr); }
}
