/* ============================================================
   LBF AgriTech — Shared Stylesheet
   Light Premium / Green Accent
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #ffffff;
  --cream:       #f5f7f3;
  --cream2:      #eef1eb;
  --black:       #0d0f0c;
  --green:       #2b7a4b;
  --green-dark:  #1a5534;
  --green-mid:   #4a9b6a;
  --green-light: #ecf5ee;
  --green-xlt:   #f4faf5;
  --gray:        #6b7480;
  --gray-lt:     #9ca3af;
  --line:        rgba(13,15,12,0.10);
  --line-w:      rgba(255,255,255,0.10);
  --shadow:      0 4px 28px rgba(13,15,12,0.08);
  --radius:      4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-weight: 500; line-height: 1.2; letter-spacing: -0.2px; }
h1 { font-size: clamp(34px, 5vw, 62px); }
h2 { font-size: clamp(26px, 3.5vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 17px; }
h5 { font-size: 14px; }
p { line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: color .2s; }

.serif { font-family: 'Georgia', 'Times New Roman', serif; }
.green { color: var(--green); }
.gray  { color: var(--gray); }
.white { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; display: block; width: 18px; height: 1.5px; background: var(--green); flex-shrink: 0;
}
.eyebrow-white { color: rgba(255,255,255,0.65); }
.eyebrow-white::before { background: rgba(255,255,255,0.4); }

.lead { font-size: 17px; color: var(--gray); line-height: 1.85; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
section { padding: 96px 48px; }
section.cream  { background: var(--cream); }
section.dark   { background: var(--black); color: var(--white); }
section.green-bg { background: var(--green); color: var(--white); }
.divider { height: 1px; background: var(--line); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 48px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  color: var(--black); flex-shrink: 0;
}
.nav-logo img { width: 34px; height: 34px; }
.nav-logo-text { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.nav-logo-text span { color: var(--green); }

.nav-center {
  display: flex; align-items: center; gap: 28px;
}
.nav-center > a {
  font-size: 14px; color: var(--gray); white-space: nowrap;
}
.nav-center > a:hover { color: var(--black); }
.nav-center > a.active { color: var(--green); font-weight: 500; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--gray); cursor: pointer;
}
.dropdown > a svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown:hover > a { color: var(--black); }
.dropdown:hover > a svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: 100%; left: -20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; min-width: 260px; z-index: 300;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  margin-top: 12px;
}
/* Невидимый мост между кнопкой и меню — перекрывает зазор */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px; left: 0; right: 0; height: 20px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 6px;
  font-size: 13px; color: var(--black);
  transition: background .15s;
}
.dropdown-menu a:hover { background: var(--green-xlt); color: var(--green-dark); }
.dropdown-menu a .dm-icon { font-size: 15px; width: 20px; text-align: center; }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.lang-switch button {
  background: none; border: none; cursor: pointer; padding: 6px 11px;
  font-size: 12px; letter-spacing: 0.5px; font-weight: 500;
  color: var(--gray); font-family: 'Inter', sans-serif; transition: all .15s;
}
.lang-switch button.active { background: var(--black); color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; font-family: 'Inter', sans-serif; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  background: transparent; color: var(--black);
  border: 1px solid rgba(13,15,12,0.18);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: var(--white); color: var(--green); font-weight: 600; }
.btn-white:hover { background: var(--green-light); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── HERO (index) ── */
.hero {
  min-height: 100vh;
  padding: 140px 48px 96px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative;
  background: #0d1f14;
  background-image: url('lbf-hero-bg.svg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-left { position: relative; z-index: 2; }
.hero-left .eyebrow { color: #7eeaaa; }
.hero-left .eyebrow::before { background: #7eeaaa; }
.hero-left h1 { color: var(--white); }
.hero-left .lead {
  color: rgba(255,255,255,0.72);
}
.hero-left .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.28);
}
.hero-left .btn-outline:hover {
  border-color: #7eeaaa;
  color: #7eeaaa;
}

.hero-label { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  background: rgba(13,15,12,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(125,201,154,0.18);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  z-index: 2;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,122,75,0.12) 0%, rgba(13,15,12,0.05) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.hero-visual-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; width: 100%;
  position: relative; z-index: 1;
}
.visual-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: border-color .2s, background .2s;
}
.visual-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(125,201,154,0.28);
}
.visual-card-icon { font-size: 24px; margin-bottom: 10px; }
.visual-card-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; color: rgba(255,255,255,0.75); }
.visual-card-val { font-size: 22px; font-weight: 700; color: #7eeaaa; }
.visual-bar { height: 6px; background: rgba(255,255,255,0.10); border-radius: 3px; margin-top: 10px; }
.visual-bar-fill { height: 100%; background: linear-gradient(90deg, #4a9b6a, #7eeaaa); border-radius: 3px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 130px 48px 72px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray); margin-bottom: 20px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb-sep { color: var(--gray-lt); }
.page-hero h1 { max-width: 720px; margin-bottom: 20px; }
.page-hero .lead { max-width: 600px; }

/* ── STATS STRIP ── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.stat-item { padding: 36px 40px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 42px; font-weight: 700; color: var(--green);
  line-height: 1; margin-bottom: 6px; letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: var(--gray); }

/* ── SERVICE CARDS GRID ── */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.svc-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
  display: flex; flex-direction: column;
}
.svc-card:nth-child(4n) { border-right: none; }
.svc-card:nth-child(n+5) { border-bottom: none; }
.svc-card:hover { background: var(--green-xlt); }
.svc-icon {
  width: 44px; height: 44px; background: var(--green-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px; flex-shrink: 0;
}
.svc-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.svc-desc { font-size: 13px; color: var(--gray); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.svc-link {
  font-size: 13px; color: var(--green); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.svc-card:hover .svc-link { gap: 8px; }

/* ── FEATURE LIST ── */
.feature-list { border-top: 1px solid var(--line); }
.feature-item {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.f-num { font-size: 12px; color: var(--green); font-weight: 600; padding-top: 2px; }
.f-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.f-desc { font-size: 13px; color: var(--gray); line-height: 1.75; }

/* ── TWO / THREE COL ── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

/* ── INFO CARDS (three-col) ── */
.info-card {
  background: var(--cream); border-radius: 10px;
  padding: 28px 24px; border: 1px solid var(--line);
}
.info-card-icon { font-size: 28px; margin-bottom: 14px; }
.info-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.info-card-desc { font-size: 13px; color: var(--gray); line-height: 1.75; }

/* ── PLATFORM MODULES GRID ── */
.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.module-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.module-item:hover { background: var(--green-xlt); }
.module-icon { font-size: 26px; margin-bottom: 12px; }
.module-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.module-desc { font-size: 12px; color: var(--gray); line-height: 1.65; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px;
}
.check-list li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.check-list.white li::before { color: rgba(255,255,255,0.8); }
.check-list.white li { color: rgba(255,255,255,0.85); }

/* ── TAGS ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--green-light); color: var(--green-dark);
  padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.tag-dark { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.tag-outline { background: transparent; color: var(--gray); border: 1px solid var(--line); }

/* ── SECTION HEADER ── */
.sec-head { margin-bottom: 56px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--gray); max-width: 560px; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin: 0 auto; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--green); color: var(--white);
  border-radius: 12px; padding: 48px;
}
.highlight-box h3 { font-size: 26px; margin-bottom: 14px; }
.highlight-box p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--black); color: var(--white);
  padding: 96px 48px; text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 36px; font-size: 16px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT FORM ── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--black); outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: rgba(255,255,255,0.5);
  padding: 72px 48px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 11px;
  color: var(--white); font-size: 17px; font-weight: 600; margin-bottom: 14px;
}
.footer-brand-logo img { width: 30px; height: 30px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
.footer-col h5 { font-size: 12px; font-weight: 600; color: var(--white); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.48);
  margin-bottom: 11px;
}
.footer-col a:hover { color: var(--white); }
.footer-contact-item { margin-bottom: 12px; font-size: 13px; }
.footer-contact-item a { color: var(--green-mid); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--white); }

/* ── PROCESS STEPS ── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 1px solid rgba(255,255,255,0.1);
}
.process-step {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.step-num {
  font-size: 52px; font-weight: 700; color: rgba(43,122,75,0.35);
  line-height: 1; margin-bottom: 18px; letter-spacing: -2px;
}
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* ── ACCORDION (FAQ) ── */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--black); text-align: left;
}
.acc-trigger .acc-icon { font-size: 22px; color: var(--green); flex-shrink: 0; line-height: 1; }
.acc-body { padding: 0 0 20px; font-size: 14px; color: var(--gray); line-height: 1.8; display: none; }
.acc-body.open { display: block; }
.acc-trigger.open .acc-icon { transform: rotate(45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .svc-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .services-grid .svc-card:nth-child(2n) { border-right: none; }
  .services-grid .svc-card:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .services-grid .svc-card:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  section { padding: 64px 20px; }
  .hero { grid-template-columns: 1fr; padding: 110px 20px 64px; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .four-col  { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 110px 20px 60px; }
  .cta-band { padding: 64px 20px; }
  footer { padding: 56px 20px 28px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .three-col { grid-template-columns: 1fr; }
  .four-col  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .modules-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .process-grid  { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .stats-strip   { grid-template-columns: 1fr 1fr; }
}
