/* Торфикорм для КРС — основные стили */
:root {
  --text: #17211b;
  --green-deep: #17462e;
  --green: #23633f;
  --mint: #eaf4ed;
  --warm: #f5f1e7;
  --info: #dfeff3;
  --amber: #c8a23a;
  --red: #9b453d;
  --border: #dce5de;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(23, 33, 27, 0.08);
  --header-h: 64px;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 700;
  font-family: var(--font-head);
  flex-shrink: 0;
}

.logo img { height: 40px; width: auto; max-width: 185px; }

.nav-desktop {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-desktop a {
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a:hover { background: var(--mint); color: var(--green-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  min-height: 48px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

.btn-secondary {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--green); background: var(--mint); }

.btn-amber {
  background: var(--amber);
  color: var(--text);
  border-color: var(--amber);
}
.btn-amber:hover { filter: brightness(0.95); }

.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 14px; border-radius: 999px; }

.menu-toggle {
  display: flex;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  font-weight: 500;
}
.nav-mobile a:hover { background: var(--mint); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

.header-cta { display: none; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: #5a6b60;
}
.breadcrumbs a { color: #5a6b60; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { margin: 0 6px; }

/* ===== Hero ===== */
.hero {
  padding: 24px 0 40px;
  background: linear-gradient(180deg, var(--mint) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 10px;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--green-deep);
}

.lead {
  font-size: 1.05rem;
  color: #3a4a40;
  margin: 0 0 22px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: #4a5c50;
}
.trust-row span::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.hero-visual {
  background: var(--warm);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #5a6b60;
  font-size: 14px;
  background: linear-gradient(135deg, #e8f0ea 0%, #f0e9dc 100%);
}

.status-banner {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--info);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.45;
}

/* ===== Sections ===== */
section {
  padding: 48px 0;
}

section:nth-child(even) {
  background: #fafbfa;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--green-deep);
  margin: 0 0 8px;
}

.section-lead {
  color: #4a5c50;
  margin: 0 0 28px;
  max-width: 40em;
}

/* Cards */
.cards-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--green-deep);
}

.card p { margin: 0; font-size: 14px; color: #3a4a40; }

.note-box {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--warm);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #5a6b60;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn[aria-selected="true"] {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}
.tab-btn:hover { color: var(--green); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Process steps */
.process-steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  font-family: var(--font-head);
  color: var(--green-deep);
}

.step p { margin: 0; font-size: 13px; color: #4a5c50; }

.step-visual {
  height: 80px;
  background: var(--mint);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #5a6b60;
}

/* ===== Calculator ===== */
.calc-section {
  background: var(--mint) !important;
}

.calc-wrap {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--green-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 99, 63, 0.15);
}

.field-hint {
  font-size: 12px;
  color: #6a7b70;
  margin-top: 4px;
}

.warning-inline {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  font-weight: 500;
}

.dose-disclaimer {
  background: #fff8e6;
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

.results {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px) {
  .results { grid-template-columns: repeat(3, 1fr); }
}

.result-card {
  background: var(--mint);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.result-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.2;
}

.result-card .label {
  font-size: 12px;
  color: #4a5c50;
  margin-top: 4px;
}

.result-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--info);
  border-radius: 8px;
  font-size: 13px;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.example-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.details-block {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.details-block summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #f7faf8;
  list-style: none;
}
.details-block summary::-webkit-details-marker { display: none; }
.details-block[open] summary { border-bottom: 1px solid var(--border); }

.details-body {
  padding: 14px 16px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  background: #fafcfa;
  overflow-x: auto;
}

.error-msg {
  background: #fceeed;
  color: var(--red);
  border: 1px solid #e8c5c2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  display: none;
}
.error-msg.show { display: block; }

/* Delivery cards */
.delivery-cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .delivery-cards { grid-template-columns: repeat(3, 1fr); }
}

.delivery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.delivery-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--green-deep);
}

.delivery-card ol {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 14px;
}
.delivery-card li { margin-bottom: 6px; }

.delivery-visual {
  height: 120px;
  background: var(--warm);
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #5a6b60;
  text-align: center;
  padding: 10px;
}

/* Checklist */
.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.check-num {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.check-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-family: var(--font-head);
  color: var(--green-deep);
}
.check-item p { margin: 0; font-size: 13px; color: #4a5c50; }

.pond-mode .section-lead,
.pond-mode .long-text { display: none; }

/* Stop signals */
.stop-block {
  background: #fdf6f5;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
}

.stop-block h2 {
  color: var(--red);
  margin-top: 0;
}

.stop-block ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.stop-block li { margin-bottom: 8px; font-size: 14px; }

/* Science */
.science-cols {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .science-cols { grid-template-columns: repeat(3, 1fr); }
}

.science-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.science-col h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--green-deep);
  font-family: var(--font-head);
}
.science-col p { margin: 0; font-size: 14px; }

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
th {
  background: var(--mint);
  font-weight: 600;
  color: var(--green-deep);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: var(--mint); }
.faq-body {
  padding: 0 16px 16px;
  font-size: 14px;
  color: #3a4a40;
}

/* Form */
.form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }

.form-output {
  margin-top: 16px;
  padding: 16px;
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  white-space: pre-wrap;
  display: none;
}
.form-output.show { display: block; }

/* CTA final */
.final-cta {
  background: var(--green-deep);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
  border-radius: 16px;
}
.final-cta h2 { color: var(--white); margin: 0 0 12px; }
.final-cta p { color: #c8d9ce; margin: 0 0 24px; max-width: 36em; margin-inline: auto; }
.final-cta .btn-primary {
  background: var(--amber);
  color: var(--text);
  border-color: var(--amber);
}
.final-cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}

/* Footer */
.site-footer {
  background: #0f1a14;
  color: #a8b8ae;
  padding: 40px 0 28px;
  font-size: 13px;
}
.site-footer a { color: #c8d9ce; }
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer a { color: #c8d9ce; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2a3a30;
  font-size: 12px;
  color: #7a8b80;
}

/* Mobile fixed CTA */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--border);
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
@media (max-width: 899px) {
  .mobile-fixed-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--warm);
  color: #6a5a30;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.delivery-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.amo-form-wrap { min-height: 120px; }
.amo-form-wrap iframe { max-width: 100% !important; }

