:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --border: #e5e7eb;
  --primary: #2688eb;
  --primary-pressed: #1d6bb8;
  --primary-light: #e0efff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px; line-height: 1.55;
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-pressed); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1120px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--primary); }
.nav-btn {
  padding: 8px 16px;
  background: var(--primary); color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 8px;
  forced-color-adjust: none;
}
.nav-btn:hover { background: var(--primary-pressed); color: #fff !important; }

/* HERO */
.hero {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  margin: 0 0 24px;
  font-size: 44px; line-height: 1.15; font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 16px; max-width: 780px;
  font-size: 18px; line-height: 1.55; color: var(--text-2);
}
.hero-actions {
  margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 24px;
  background: var(--primary); color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.btn:hover { background: var(--primary-pressed); }
.btn:active { background: var(--primary-pressed); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent; color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary-light); color: var(--primary-pressed) !important; }
.btn-primary { /* алиас */ }

/* SECTIONS */
.sec { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec:last-of-type { border-bottom: none; }
.sec-alt { background: var(--bg-alt); }
.sec h2 {
  margin: 0 0 16px;
  font-size: 32px; line-height: 1.25; font-weight: 700;
  letter-spacing: -0.01em;
}
.sec > .wrap > p {
  margin: 0 0 32px; max-width: 780px;
  font-size: 17px; color: var(--text-2);
}
.sec-lead {
  margin: 0 0 40px; max-width: 720px;
  font-size: 17px; color: var(--text-2);
}
.subsection {
  margin: 64px 0 32px;
  font-size: 24px; font-weight: 600;
}

/* GRID */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* CARDS */
.card {
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(38, 136, 235, 0.08);
}
.card-icon {
  display: inline-block;
  width: 44px; height: 44px; line-height: 44px;
  text-align: center;
  margin-bottom: 16px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 10px;
  font-size: 22px; font-weight: 600;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px; font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 15px; color: var(--text-2); line-height: 1.55;
}

/* ROLES */
.role-card {
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.role-card:hover { border-color: var(--primary); }
.role-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.role-agent { background: #dbeafe; color: #1e40af; }
.role-unit { background: #dcfce7; color: #166534; }
.role-log { background: #fef3c7; color: #92400e; }
.role-rep { background: #f3e8ff; color: #6b21a8; }
.role-card h3 {
  margin: 0 0 8px;
  font-size: 19px; font-weight: 600;
}
.role-card p {
  margin: 0 0 8px;
  font-size: 15px; color: var(--text-2);
}
.role-channel {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px !important;
  color: var(--text-3) !important;
  font-style: italic;
}

/* STEPS */
.steps-list {
  margin: 0; padding: 0; list-style: none;
}
.step-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary); color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  forced-color-adjust: none;
}
.step-body h3 {
  margin: 6px 0 6px;
  font-size: 18px; font-weight: 600;
}
.step-body p {
  margin: 0;
  font-size: 15px; color: var(--text-2); line-height: 1.6;
}

/* OUTCOMES */
.outcome {
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--text-3);
  background: #ffffff;
}
.outcome-ok { border-left-color: var(--ok); }
.outcome-warn { border-left-color: var(--warn); }
.outcome-err { border-left-color: var(--err); }
.outcome h4 {
  margin: 0 0 4px;
  font-size: 18px; font-weight: 700;
}
.outcome-what {
  margin: 0 0 12px !important;
  font-size: 13px !important; color: var(--text-3) !important;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.outcome p {
  margin: 0;
  font-size: 15px; color: var(--text-2); line-height: 1.55;
}

/* FORM */
.lead-form {
  max-width: 480px;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.field { display: block; margin-bottom: 16px; }
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
}
.label b { color: var(--err); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 10px 14px;
  font-family: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #ffffff; color: var(--text);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38,136,235,0.1);
}
.field textarea { resize: vertical; min-height: 80px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 8px 0 20px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
}
.consent input { margin-top: 3px; flex-shrink: 0; }
.trap {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important;
}
.err {
  display: block;
  margin-top: 4px;
  color: var(--err); font-style: normal;
  font-size: 13px;
}
.err:empty { display: none; }
.err-global {
  margin-top: 16px; padding: 12px;
  background: #fef2f2;
  border-left: 3px solid var(--err);
  border-radius: 4px;
}
.err-global:empty { display: none; }
.lead-form button[type="submit"] { width: 100%; }

/* FOOTER */
.foot {
  padding: 40px 0 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-2);
}
.foot p { margin: 0 0 8px; }
.foot-links { font-size: 13px; color: var(--text-3); }
.foot-links a { color: var(--text-3); }
.foot-links a:hover { color: var(--primary); }

/* MOBILE */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-row { padding: 12px 16px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 16px; }
  .sec { padding: 48px 0; }
  .sec h2 { font-size: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .nav > a:not(.nav-btn):not(:last-child):not(:nth-last-child(2)) { display: none; }
  .subsection { margin: 40px 0 24px; font-size: 20px; }
  .lead-form { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .brand span { font-size: 15px; }
}

/* HERO PHOTO (19.10.2026) */
.hero-photo {
  margin-bottom: 32px;
  text-align: center;
}
.hero-photo img {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(38, 136, 235, 0.15);
}
.brand-img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  .hero-photo img { max-width: 280px; }
  .brand-img { width: 32px; height: 32px; }
}
