/* ============================================================
   AEPS Agri — catalog layer (v3.2)
   Grain grid (4×2), Sunflower oil band, hero illustration.
   ============================================================ */

/* --------- Hero layout with illustration --------- */
.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy { text-align: left; margin: 0; max-width: 620px; }
.hero-copy .eyebrow { justify-content: flex-start; }
.hero-copy .hero-cta { justify-content: flex-start; }

.hero-illustration {
  position: relative;
  filter: drop-shadow(0 30px 40px rgba(43, 30, 18, 0.18));
}
.hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.hero-illustration::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: linear-gradient(135deg,
    rgba(233, 166, 72, 0.15),
    rgba(207, 90, 44, 0.12),
    rgba(127, 143, 107, 0.1));
  z-index: -1;
  filter: blur(30px);
}

/* --------- Grain crop grid (4 cols) --------- */
.grains { background: var(--white); }
.crop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.crop {
  padding: 28px 24px 24px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border: 1px solid var(--line);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.crop::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 166, 72, 0.18), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity .4s ease;
}
.crop:hover {
  transform: translateY(-4px);
  border-color: var(--terra-soft);
  box-shadow: var(--shadow-md);
}
.crop:hover::before { opacity: 1; }
.crop-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  margin-bottom: 20px;
  align-items: center;
}
.crop-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--terra-soft), var(--sand));
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-glyph svg { width: 26px; height: 26px; }
.crop h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.crop-tag {
  color: var(--terra);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 2px 0 0;
}
.crop-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.crop-specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.crop-specs li:last-child { border-bottom: 0; }
.crop-specs span { color: var(--muted); }
.crop-specs b { color: var(--ink); font-weight: 600; text-align: right; }

/* --------- Sunflower oil band --------- */
.oil-band {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.oil-band::before {
  content: "";
  position: absolute;
  top: 10%; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 199, 141, 0.35), transparent 70%);
  filter: blur(70px);
}
.oil-band::after {
  content: "";
  position: absolute;
  bottom: 5%; left: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 166, 72, 0.3), transparent 70%);
  filter: blur(70px);
}
.oil-band .wrap { position: relative; z-index: 1; }

.oil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}
.oil-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.oil-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--terra-soft);
}
.oil-illu {
  background: linear-gradient(135deg, #fdefc9 0%, #f5c78d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.oil-illu::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 60%);
}
.oil-illu svg {
  width: 100%;
  height: auto;
  max-width: 130px;
  filter: drop-shadow(0 8px 16px rgba(207, 90, 44, 0.25));
  position: relative;
  z-index: 1;
}
.oil-body {
  padding: 26px 30px;
}
.oil-body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.oil-tag {
  color: var(--terra);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 18px;
}

/* --------- Oil supply modes (flexitank / bottled) --------- */
.oil-supply {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.oil-supply-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.oil-supply-item:hover {
  transform: translateY(-3px);
  background: var(--white);
  border-color: var(--terra-soft);
  box-shadow: var(--shadow-md);
}
.oil-supply-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--terra), var(--amber));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(207, 90, 44, 0.35);
}
.oil-supply-icon svg { width: 40px; height: 40px; }
.oil-supply-item h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.oil-supply-item > div > p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
}
.oil-supply-facts {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.oil-supply-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
}
.oil-supply-facts span { color: var(--muted); }
.oil-supply-facts b { color: var(--ink); font-weight: 600; text-align: right; }

/* --------- RTL for oil supply --------- */
[dir="rtl"] .oil-supply-item { grid-template-columns: 1fr 80px; }
[dir="rtl"] .oil-card { grid-template-columns: 1fr 180px; }
[dir="rtl"] .crop-head { grid-template-columns: 1fr 44px; }
[dir="rtl"] .oil-supply-facts b,
[dir="rtl"] .crop-specs b { text-align: left; }

/* --------- Responsive --------- */
@media (max-width: 1100px) {
  .crop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-illustration { max-width: 520px; margin: 0 auto; }
  .crop-grid { grid-template-columns: repeat(2, 1fr); }
  .oil-grid { grid-template-columns: 1fr; }
  .oil-supply { grid-template-columns: 1fr; }
  .oil-card { grid-template-columns: 1fr; }
  .oil-illu { padding: 40px; aspect-ratio: 5 / 2; }
}
@media (max-width: 640px) {
  .crop-grid { grid-template-columns: 1fr; }
  .oil-supply-item { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .oil-supply-icon { width: 64px; height: 64px; }
  .oil-supply-icon svg { width: 30px; height: 30px; }
}

/* ============================================================
   Live prices widget
   ============================================================ */

.prices-band {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.prices-band::before {
  content: "";
  position: absolute;
  top: -60px; right: 5%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 90, 44, 0.14), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.prices-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.prices-head h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prices-head h3 em {
  color: var(--terra);
  font-style: italic;
  font-weight: 500;
}
.prices-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.prices-meta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2d9d3d;
  box-shadow: 0 0 8px rgba(45, 157, 61, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.prices-meta b {
  color: var(--ink);
  font-weight: 700;
}
.prices-meta .src {
  color: var(--dim);
  font-size: 11.5px;
  margin-left: 6px;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.price-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--terra-soft);
}
.price-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}
.price-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--terra-soft), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.price-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.price-exchange {
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}
.price-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-usd {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-usd span {
  font-size: 12px;
  color: var(--dim);
  font-weight: 500;
  margin-left: 2px;
}
.price-eur {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.price-eur span {
  font-size: 11px;
  color: var(--dim);
  margin-left: 2px;
}
.price-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price-change.up   { color: #2d7a3d; }
.price-change.down { color: #b23a3a; }
.price-change.flat { color: var(--muted); }

.price-fallback {
  padding: 24px;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

@media (max-width: 1100px) { .prices-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .prices-grid { grid-template-columns: 1fr; } }

/* ============================================================
   News band "Field news / Вести с полей"
   ============================================================ */

.news-band {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.news-band::before {
  content: "";
  position: absolute;
  top: 20%; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 143, 107, 0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.news-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 42px;
}
.news-title h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.news-title h2 em {
  color: var(--terra);
  font-style: italic;
  font-weight: 500;
}
.news-title p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.news-filter {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.news-filter button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.news-filter button.active {
  background: linear-gradient(135deg, var(--terra), var(--terra-2));
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(207, 90, 44, 0.35);
}
.news-filter button:hover:not(.active) { color: var(--terra); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--terra-soft);
}
.news-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.news-card:hover::before { transform: scaleX(1); }

.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.news-badge {
  display: inline-flex;
  padding: 3px 9px;
  background: var(--terra-soft);
  color: var(--terra);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.news-badge.global { background: var(--sage-soft); color: #4a5d3b; }

.news-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.news-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 auto;
  line-height: 1.55;
  /* Clamp summary to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-source {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.news-source .go {
  color: var(--terra);
  transition: transform .2s ease;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.news-card:hover .news-source .go { transform: translateX(4px); }

.news-more {
  margin-top: 44px;
  text-align: center;
}

.news-fallback {
  padding: 30px;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  {
  .news-grid { grid-template-columns: 1fr; }
  .news-head { grid-template-columns: 1fr; }
}

/* ============================================================
   News cards v2 — with category-tinted illustration strip
   ============================================================ */

.news-card {
  padding: 0 !important;
  overflow: hidden;
}
.news-illu {
  height: 130px;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.news-illu svg {
  display: block;
  width: 100%;
  height: 100%;
}
.news-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.98);
  background: rgba(43, 30, 18, 0.55);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}
.news-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-body .news-meta {
  margin-bottom: 12px;
}
.news-body h3 {
  margin: 0 0 10px;
}
.news-body p {
  flex: 1;
}

/* ============================================================
   News: photo hero in card
   ============================================================ */
.news-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-photo { transform: scale(1.04); }

/* ============================================================
   Article page (/news/{slug}/)
   ============================================================ */
.article-wrap {
  padding: 40px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  min-height: 60vh;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--terra);
  margin-bottom: 24px;
  padding: 6px 0;
  transition: gap .2s ease;
}
.article-back:hover { gap: 12px; }

.article-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 16 / 9;
  max-height: 460px;
  margin: 0 auto 40px;
  max-width: 900px;
  box-shadow: var(--shadow-md);
}
.article-hero.no-img { aspect-ratio: auto; height: 40px; background: none; box-shadow: none; }
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(43, 30, 18, 0.55);
  color: rgba(255,255,255,0.95);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 2;
}
.article-hero-cat { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; }
.article-hero-date::before { content: '·'; margin: 0 4px; opacity: 0.6; }

.article-head {
  max-width: 780px;
  margin: 0 auto 32px;
}
.article-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.article-lead {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article-body p { margin: 0 0 20px; }
.article-body p:last-child { margin-bottom: 0; }

.article-footer {
  max-width: 720px;
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.article-disclaimer { margin: 0 0 10px; font-style: italic; }
.article-source { margin: 0; }
.article-source-link { color: var(--terra); font-weight: 600; }
.article-source-link:hover { text-decoration: underline; }

.article-cta {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .article-hero { max-height: 260px; margin-bottom: 24px; }
  .article-hero-badge { top: 12px; left: 12px; padding: 6px 10px; font-size: 11px; }
}
