/* Agro Navigation — agro-glonass.ru shared styles */
:root {
  --green-900: #0f2b1a;
  --green-800: #1a3a2a;
  --green-700: #245338;
  --green-600: #2d6b45;
  --green-500: #388553;
  --green-400: #4ca66a;
  --green-300: #6fc288;
  --green-200: #a3dbb5;
  --green-100: #d4f0de;
  --green-50: #ecf9f1;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --max-w: 1120px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-500); }
img { max-width: 100%; height: auto; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,43,26,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 18px; text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.lang-switch {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; color: var(--white); padding: 6px 14px; font-size: 13px;
  font-weight: 600; text-decoration: none; transition: background 0.2s;
}
.lang-switch:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-600) 100%);
  color: var(--white); padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(76,166,106,0.15) 0%, transparent 70%); pointer-events: none;
}
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
  color: var(--green-200);
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 span { color: var(--green-300); }
.hero p { font-size: 19px; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 520px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px; background: var(--white);
  color: var(--green-900); border: none; border-radius: 14px; padding: 14px 28px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); color: var(--green-900); }
.btn-store svg { width: 28px; height: 28px; }
.btn-store .btn-label { font-size: 11px; font-weight: 500; opacity: 0.7; }
.btn-store .btn-store-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.btn-rustore { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-rustore:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-600); color: var(--white); border: none; border-radius: 12px;
  padding: 14px 28px; font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,107,69,0.3); background: var(--green-500); color: var(--white); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--green-600); border: 2px solid var(--green-600);
  border-radius: 12px; padding: 12px 26px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--green-600); color: var(--white); }

/* ── PHONE ── */
.hero-visual { flex: 0 0 auto; max-width: 260px; width: 100%; }
.phone-frame {
  background: #1a1a1a; border-radius: 36px; padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}
.phone-screen { background: #000; border-radius: 28px; aspect-ratio: 9/16; overflow: hidden; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── STATS ── */
.stats { background: var(--white); padding: 60px 0; border-bottom: 1px solid var(--gray-200); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 32px; font-weight: 800; color: var(--green-600); margin-bottom: 4px; }
.stat-item p { font-size: 14px; color: var(--gray-500); font-weight: 500; }

/* ── SECTIONS ── */
.section-label { font-size: 13px; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-title { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 18px; color: var(--gray-500); margin-bottom: 60px; max-width: 600px; }

/* ── FEATURES ── */
.features { padding: 100px 0; background: var(--gray-50); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--white); border-radius: 20px; padding: 36px;
  border: 1px solid var(--gray-200); transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 26px; height: 26px; color: var(--green-600); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-it-works { padding: 100px 0; background: var(--white); }
.steps { display: flex; gap: 40px; margin-top: 60px; }
.step { flex: 1; text-align: center; position: relative; }
.step-number { width: 64px; height: 64px; border-radius: 50%; background: var(--green-600); color: var(--white); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.step:not(:last-child)::after { content: '\2192'; position: absolute; right: -24px; top: 18px; font-size: 28px; color: var(--green-300); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--gray-500); max-width: 280px; margin: 0 auto; }

/* ── DIY RECEIVER ── */
.diy-receiver { padding: 100px 0; background: linear-gradient(135deg, var(--green-900), var(--green-800)); color: var(--white); }
.diy-grid { display: flex; gap: 60px; align-items: center; }
.diy-content { flex: 1; }
.diy-content h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.diy-content p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.6; }
.diy-visual { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 48px; text-align: center; }
.diy-comparison { display: flex; gap: 32px; justify-content: center; }
.comparison-item { padding: 24px; border-radius: 16px; min-width: 180px; }
.comparison-item.ours { background: rgba(76,166,106,0.15); border: 2px solid var(--green-400); }
.comparison-item.theirs { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); }
.comparison-price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.comparison-accuracy { font-size: 14px; opacity: 0.7; }
.comparison-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; opacity: 0.6; }

/* ── FAQ ── */
.faq { padding: 100px 0; background: var(--gray-50); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; background: none; border: none; padding: 24px; font-size: 17px;
  font-weight: 600; text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; color: var(--gray-900);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question svg { width: 20px; height: 20px; color: var(--gray-500); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 24px; font-size: 15px; color: var(--gray-500); line-height: 1.7; }

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white); padding: 120px 0 60px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -30%; right: -15%; width: 60%; height: 160%;
  background: radial-gradient(ellipse, rgba(76,166,106,0.12) 0%, transparent 70%); pointer-events: none;
}
.page-header h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 600px; position: relative; z-index: 1; }

/* breadcrumbs */
.breadcrumbs { padding: 16px 0; font-size: 14px; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.breadcrumbs a { color: var(--green-600); font-weight: 500; }
.breadcrumbs a:hover { color: var(--green-500); }
.breadcrumbs span { margin: 0 8px; color: var(--gray-300); }

/* ── ARTICLE CONTENT ── */
.article { padding: 80px 0; }
.article-content { max-width: 760px; }
.article-content h2 { font-size: 28px; font-weight: 800; margin: 48px 0 16px; color: var(--gray-900); }
.article-content h3 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: var(--gray-900); }
.article-content p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; color: var(--gray-700); }
.article-content ul, .article-content ol { margin: 16px 0 24px 24px; }
.article-content li { font-size: 16px; line-height: 1.8; margin-bottom: 8px; color: var(--gray-700); }
.article-content img {
  border-radius: 16px; margin: 24px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
}
.article-content .img-caption { font-size: 14px; color: var(--gray-500); text-align: center; margin-top: -16px; margin-bottom: 24px; }
.article-content .info-box {
  background: var(--green-50); border-left: 4px solid var(--green-500);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0;
  font-size: 15px; color: var(--gray-700); line-height: 1.7;
}
.article-content .warning-box {
  background: #fffbeb; border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0;
  font-size: 15px; color: var(--gray-700); line-height: 1.7;
}

/* ── INSTRUCTION STEPS (visual) ── */
.instruction-steps { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }
.instruction-step { display: flex; gap: 32px; align-items: flex-start; }
.step-img { flex: 0 0 200px; }
.step-img img { border-radius: 16px; border: 1px solid var(--gray-200); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.step-text { flex: 1; }
.step-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--green-700); }
.step-text p { font-size: 16px; line-height: 1.8; color: var(--gray-700); margin-bottom: 12px; }

/* ── SCREENSHOTS GALLERY ── */
.screenshots { padding: 100px 0; background: var(--gray-50); }
.screenshots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px;
}
.screenshot-item { text-align: center; }
.screenshot-item img {
  border-radius: 16px; border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;
  max-height: 380px; object-fit: contain; background: #000;
}
.screenshot-item img:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.screenshot-item p { font-size: 14px; color: var(--gray-500); margin-top: 12px; font-weight: 500; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 80px 0; background: linear-gradient(135deg, var(--green-900), var(--green-800)); color: var(--white); text-align: center;
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── ACCURACY OPTIONS ── */
.accuracy-options { display: flex; flex-direction: column; gap: 16px; }
.accuracy-option {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 20px 24px; transition: border-color 0.2s;
}
.accuracy-option.highlighted { background: rgba(76,166,106,0.12); border: 2px solid var(--green-400); }
.accuracy-icon { font-size: 28px; margin-bottom: 8px; }
.accuracy-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.accuracy-value { font-size: 24px; font-weight: 800; color: var(--green-300); margin-bottom: 4px; }
.accuracy-price { font-size: 15px; font-weight: 600; color: var(--green-200); margin-bottom: 8px; }
.accuracy-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ── COMPARISON TABLE ── */
.comparison-table {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200);
}
.ct-row { display: contents; }
.ct-cell {
  padding: 16px 20px; font-size: 15px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
}
.ct-header-row .ct-cell { background: var(--gray-100); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.ct-cell.ct-ours { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.ct-cell.ct-label { color: var(--gray-500); font-weight: 500; }
.ct-last-row .ct-cell { border-bottom: none; }
@media (max-width: 600px) {
  .comparison-table { grid-template-columns: 1fr; }
  .ct-cell { border-right: none; }
  .ct-header-row .ct-cell:first-child { display: none; }
}

/* ── FOOTER ── */
footer { background: var(--green-900); color: rgba(255,255,255,0.6); padding: 60px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; gap: 40px; text-align: center; }
  .hero h1 { font-size: 34px; }
  .hero p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { flex-direction: column; gap: 32px; }
  .step:not(:last-child)::after { display: none; }
  .diy-grid { flex-direction: column; }
  .footer-grid { flex-direction: column; }
  .nav-links a.hide-mobile { display: none; }
  .instruction-step { flex-direction: column; }
  .step-img { flex: none; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
  .page-header h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item h3 { font-size: 24px; }
  .diy-comparison { flex-direction: column; align-items: center; }
}
