/* Сайт idfarm.online — общая вёрстка лендинга, справки и списка документов. */
/* Цвета логотипа: тёмный #162F35, бирюзовый #1F9A88, голубой #0695AE. */
:root {
  --ground: #f4f8f7;
  --surface: #ffffff;
  --surface-2: #e8f2f0;
  --ink: #162f35;
  --muted: #55696d;
  --line: #d6e3e1;
  --accent: #1f9a88;
  --accent-ink: #157a6b;
  --accent-soft: #dff1ed;
  --on-accent: #ffffff;
  --teal: #0695ae;
  --teal-soft: #ddf1f5;
  --hero-ground: #162f35;
  --hero-ink: #eef6f5;
  --hero-muted: #a9c2c3;
  --shadow: 0 1px 2px rgba(22, 47, 53, .06), 0 12px 32px rgba(22, 47, 53, .10);
  --radius: 14px;
  --display: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1a1d;
    --surface: #132428;
    --surface-2: #1a2f34;
    --ink: #e3eeee;
    --muted: #93abad;
    --line: #24393e;
    --accent: #3cc4ae;
    --accent-ink: #6fd8c6;
    --accent-soft: #143831;
    --on-accent: #062420;
    --teal: #3ec3dc;
    --teal-soft: #0f2f37;
    --hero-ground: #0a1416;
    --hero-ink: #eef6f5;
    --hero-muted: #93abad;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0d1a1d;
  --surface: #132428;
  --surface-2: #1a2f34;
  --ink: #e3eeee;
  --muted: #93abad;
  --line: #24393e;
  --accent: #3cc4ae;
  --accent-ink: #6fd8c6;
  --accent-soft: #143831;
  --on-accent: #062420;
  --teal: #3ec3dc;
  --teal-soft: #0f2f37;
  --hero-ground: #0a1416;
  --hero-ink: #eef6f5;
  --hero-muted: #93abad;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img.mark { width: 34px; height: 29px; }
.brand b { font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15px/1 var(--display); padding: 13px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .topbar .btn { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { display: inline-flex; margin-top: 8px; }
}

/* Первый экран */
.hero { background: var(--hero-ground); color: var(--hero-ink); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(31,154,136,.35), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #5fd3c0; }
.hero h1 em { color: #5fd3c0; }
.hero .lead { color: var(--hero-muted); }
.hero .btn-ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { border-color: #5fd3c0; }
.hero .crumbs, .hero .crumbs a { color: var(--hero-muted); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.eyebrow {
  font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; letter-spacing: -.02em; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .facts { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin-top: 36px; justify-content: start; }
@media (max-width: 560px) { .hero .facts { grid-template-columns: 1fr; } }
.hero .facts div { display: grid; gap: 2px; }
.hero .facts b { font: 700 24px/1.1 var(--display); }
.hero .facts span { font-size: 14px; color: var(--muted); }
.shot-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot-frame .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.shot-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-frame .bar span { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .shot-frame { width: 128%; }
.event-chip {
  position: absolute; left: -28px; bottom: -22px; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 16px; display: grid; gap: 2px; min-width: 230px;
}
.event-chip small { font: 600 11px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.event-chip b { font: 600 15px/1.3 var(--display); }
.event-chip code { font: 500 13px/1.3 var(--mono); color: var(--accent-ink); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .hero-visual .shot-frame { width: 100%; }
  .event-chip { left: 12px; bottom: -20px; }
}

/* Полоса интеграций */
.strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; gap: 12px 36px; align-items: center; padding: 20px 0; flex-wrap: wrap; }
.strip span.lbl { font-size: 14px; color: var(--muted); }
.strip b { font: 600 15px/1 var(--display); color: var(--ink); opacity: .78; }

/* Разделы */
section.block { padding: 88px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.015em; margin: 12px 0 14px; }
.head p { color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c4, .grid.c3 { grid-template-columns: 1fr; } }

.solution { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
section.alt .solution { background: var(--ground); }
.solution h3 { font-size: 21px; }
.solution p { color: var(--muted); font-size: 16px; }
.solution ul { margin: 4px 0 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }

.product { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px 4px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.product:hover h3 { color: var(--accent-ink); }
.product .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.product .ico svg { width: 22px; height: 22px; }
.product h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.product p { color: var(--muted); font-size: 15px; }
.tag { font: 600 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }

/* Экраны */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button {
  font: 500 15px/1 var(--display); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.panel { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: 26px; margin-bottom: 12px; }
.panel p { color: var(--muted); }
.panel ul { padding-left: 18px; margin: 16px 0 0; display: grid; gap: 8px; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }

/* Приложения */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.app .dev { font: 500 13px/1 var(--mono); color: var(--teal); }
.app h3 { font-size: 21px; }
.app p { color: var(--muted); font-size: 16px; }

/* Развёртывание */
.deploy { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.deploy > div { padding: 28px; display: grid; gap: 10px; align-content: start; }
.deploy > div + div { border-left: 1px solid var(--line); }
.deploy h3 { font-size: 20px; }
.deploy p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .deploy { grid-template-columns: 1fr; } .deploy > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price h3 { font-size: 22px; }
.price .amount { font: 700 28px/1.1 var(--display); }
.price .amount small { display: block; font: 400 14px/1.4 var(--display); color: var(--muted); margin-top: 6px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.price li { padding-left: 26px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Вопросы */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 24px/1 var(--display); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; }

/* Контакты */
.cta { background: var(--accent); color: var(--on-accent); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta p { opacity: .88; margin-top: 12px; font-size: 18px; }
.cta .contacts { display: grid; gap: 12px; }
.cta .contacts a { color: var(--on-accent); font: 600 22px/1.2 var(--display); text-decoration: none; }
.cta .contacts a:hover { text-decoration: underline; }
.cta .contacts span { font-size: 14px; opacity: .8; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Подвал */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 88px; background: var(--surface); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { color: var(--accent-ink); }
footer.site .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer.site .about p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 30em; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .about { grid-column: 1 / -1; } }

/* Справка и документы */
.page-head { padding: 56px 0 44px; background: var(--hero-ground); color: var(--hero-ink); }
.page-head .eyebrow { color: #5fd3c0; }
.page-head p { color: var(--hero-muted) !important; }
.page-head a { color: #8fe3d5; }
.page-head .crumbs, .page-head .crumbs a { color: var(--hero-muted); }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin: 12px 0 12px; letter-spacing: -.015em; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 46em; }
.with-side { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0; }
.side { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 15px; max-height: calc(100vh - 110px); overflow: auto; }
.side b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.side a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.side a:hover { background: var(--surface-2); }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; gap: 24px; } .side { position: static; max-height: none; } }
.prose { max-width: 820px; display: grid; gap: 18px; min-width: 0; }
.prose h2 { font-size: 30px; margin-top: 36px; }
.prose h3 { font-size: 21px; margin-top: 18px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose figure { margin: 6px 0 10px; }
.prose figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.module { display: grid; gap: 14px; padding-top: 12px; }
.module .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-list { display: grid; gap: 16px; padding: 48px 0; }
.doc-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.doc-item h3 { font-size: 21px; }
.doc-item p { color: var(--muted); font-size: 16px; grid-column: 1; }
.doc-item .btn { grid-row: 1 / span 2; grid-column: 2; }
.doc-item .meta { font: 500 13px/1 var(--mono); color: var(--muted); }
@media (max-width: 700px) { .doc-item { grid-template-columns: 1fr; } .doc-item .btn { grid-row: auto; grid-column: 1; justify-self: start; } }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .articles { grid-template-columns: 1fr; } }
.articles a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.articles a:hover { border-color: var(--accent); }
.articles a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Оборудование и о компании */
a.solution.link { text-decoration: none; color: inherit; }
a.solution.link:hover { border-color: var(--accent); }
.solution .dev, .app .dev { font: 500 13px/1 var(--mono); color: var(--teal); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }
.spec { overflow-x: auto; }
.spec th { width: 34%; font-weight: 500; color: var(--muted); background: var(--surface-2); }
footer.site .legal { justify-content: flex-start; gap: 8px 24px; }

/* Направления и страницы разделов */
.farm-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .farm-types { grid-template-columns: 1fr; } }
.farm-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 26px; display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
a.farm-type:hover { border-color: var(--accent); }
.farm-type h3 { font-size: 24px; padding: 0 8px; }
.farm-type p, .farm-type ul { padding: 0 8px; color: var(--muted); }
.farm-type ul { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.farm-type .more { padding: 0 8px; color: var(--accent-ink); font-weight: 600; }
.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 26px; margin-bottom: 12px; }
.feature p { color: var(--muted); }
.feature ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature:nth-child(even) .feature-text { order: 0; } }
.next { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 16px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }
.contacts-big { display: grid; gap: 10px; }
.contacts-big a { font: 600 26px/1.2 var(--display); color: var(--ink); text-decoration: none; }
.contacts-big a:hover { color: var(--accent-ink); }

/* Тёмный первый экран: перекрывает общие цвета текста выше. */
.hero .lead, .page-head p { color: var(--hero-muted); }
.hero h1, .page-head h1 { color: var(--hero-ink); }
.hero h1 em { color: #5fd3c0; }
