/* ═══════════════════════════════════════════════════════════
   БИЗ-ОН · Лендинг ООО «Центр Автоматизации»
   Аккредитация ИТ-компании, приказ Минцифры № 511 от 02.06.2025
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Бренд БИЗ-ОН */
  --brand-50:  #f3faef;
  --brand-100: #e1f1d6;
  --brand-200: #c8e3b2;
  --brand-300: #a8d289;
  --brand-400: #89bd28;
  --brand-500: #539933;
  --brand-600: #1e7e34;
  --brand-700: #1c7430;
  --brand-800: #376b3e;
  --brand-900: #275028;

  /* Нейтральные */
  --bg:         #f9fbfe;
  --bg-card:   #ffffff;
  --text:       #222222;
  --text-mute:  #6c757d;
  --text-light: #94a3b8;
  --border:     #e6ebef;
  --border-soft: #f0f3f6;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg:  0 16px 48px rgba(15, 23, 42, .12), 0 4px 16px rgba(15, 23, 42, .06);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { color: var(--text); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 600; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 22px; margin: 0 0 12px; }
li + li { margin-top: 6px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header / Top nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 251, 254, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img { width: 210px; height: auto; display: block; }
.brand-tagline {
  width: 210px;
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0;
  margin-left: auto;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover {
  background: var(--brand-100);
  color: var(--brand-700);
  text-decoration: none;
}
.btn-cta {
  background: var(--brand-500);
  color: #fff !important;
  padding: 8px 16px !important;
  margin-left: 8px;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(83, 153, 51, .3);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-cta:hover {
  background: var(--brand-600);
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(83, 153, 51, .4);
}

/* На средних экранах прячем слоган в шапке, чтобы освободить место для меню */
@media (max-width: 1200px) {
  .site-header .brand-tagline { display: none; }
}
/* На узких экранах прячем второстепенные пункты, оставляем главное */
@media (max-width: 1080px) {
  .nav a[href="#about"],
  .nav a[href="#stack"] { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(137, 189, 40, .15), transparent 60%),
    radial-gradient(50% 50% at 0% 80%, rgba(83, 153, 51, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-500); }
.hero .lead {
  font-size: 19px;
  color: var(--text-mute);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  box-shadow: var(--shadow-sm);
}
.hero-badge strong { color: var(--brand-600); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(83, 153, 51, .35);
}
.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(83, 153, 51, .45);
}
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
  transform: rotate(0.5deg);
  transition: transform .3s ease;
}
.hero-visual:hover { transform: rotate(0); }
.hero-visual img { width: 100%; display: block; }
.hero-visual-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-700);
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

/* ─── Section common ───────────────────────────────────────── */
section { padding: 72px 0; }
section:nth-child(even) { background: #fff; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p { color: var(--text-mute); font-size: 17px; margin: 12px auto 0; }

/* ─── О компании ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fact-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.fact-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-500);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1;
}
.fact-lbl { color: var(--text-mute); font-size: 14px; }

/* ─── Продукты ─────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.product-card.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--brand-50));
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(83, 153, 51, .35);
}
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--text-mute); margin: 0 0 16px; font-size: 15px; }
.product-screenshot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.product-screenshot img { width: 100%; display: block; }
.product-screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.modules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.modules-list li {
  margin: 0;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  color: var(--text);
  position: relative;
}
.modules-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 700;
}

/* ─── Виды деятельности 449 ───────────────────────────────── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.activity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .15s ease;
}
.activity-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.activity-code {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 1px solid var(--brand-100);
}
.activity-card h4 { margin: 0 0 6px; }
.activity-card p { color: var(--text-mute); font-size: 14px; margin: 0; line-height: 1.5; }
.activity-meta { color: var(--text-mute); text-align: center; margin-top: 28px; font-size: 13px; }

/* ─── Стек ─────────────────────────────────────────────────── */
.stack-block { margin-bottom: 32px; }
.stack-block:last-child { margin-bottom: 0; }
.stack-block h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: 16px;
}
.stack-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.stack-tile:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-1px);
}
.stack-tile .lic {
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.stack-tile .lic.proprietary {
  background: #fff4e5;
  color: #b25e09;
}

/* ─── Правообладание ──────────────────────────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.rights-text p { color: var(--text); font-size: 16px; line-height: 1.6; }
.rights-text .legal {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--brand-50);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
}
.cert {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.cert-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
}
.cert-image img { width: 100%; display: block; }
.cert-image-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  text-align: center;
  font-size: 13px;
  padding: 16px;
}
.cert-meta { font-size: 13px; color: var(--text-mute); }
.cert-meta strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14px; }

/* ─── Реестр ───────────────────────────────────────────────── */
.registry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.registry-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #fff4e5;
  color: #b25e09;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.registry-card--ok { border-color: var(--brand-500); }
.registry-card--ok .registry-icon {
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 40px;
  font-weight: 700;
}
.registry-text h3 { margin-bottom: 6px; }
.registry-text p { color: var(--text-mute); margin: 0 0 18px; font-size: 15px; }
.registry-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.registry-meta > div { display: flex; flex-direction: column; gap: 4px; }
.registry-meta dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 500;
}
.registry-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 720px) {
  .registry-meta { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── Стоимость ────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.price-info {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.price-info h3 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.price-info p { color: rgba(255, 255, 255, .85); margin: 0 0 18px; }
.price-info ul { color: rgba(255, 255, 255, .9); padding-left: 22px; }
.price-info ul li::marker { color: var(--brand-300); }
.price-info .phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff !important;
  margin-top: 14px;
}
.price-info .phone:hover { text-decoration: none; }
.price-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.price-form h3 { margin-bottom: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.form-row.agree input { width: auto; margin-top: 3px; }
.form-row.agree label { font-size: 13px; margin: 0; line-height: 1.5; }
.price-form .btn-primary { width: 100%; }
#form-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
#form-status.ok { color: var(--brand-600); }
#form-status.err { color: #b25e09; }

/* ─── Контакты ─────────────────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-card h3 .ico { color: var(--brand-500); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .lbl { color: var(--text-mute); flex-shrink: 0; }
.contact-list .val { text-align: right; font-weight: 500; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.footer-col p,
.footer-col li {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 0 0 8px; }
.footer-col a { color: var(--text-mute); }
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-card.feature { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .about-grid,
  .products-grid,
  .activity-grid,
  .price-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .product-card { padding: 24px; }
  .price-info, .price-form, .contact-card { padding: 28px; }
  .registry-card { flex-direction: column; text-align: center; padding: 28px; }
  .site-header .container { gap: 12px; }
  .site-header .brand img { width: 170px; }
  .site-header .brand-tagline { width: 170px; }
  .modules-list { grid-template-columns: 1fr; }
}
