/* ==========================================================================
   Александр Иванов — бизнес-карточка B2B. Современный минимализм.
   ========================================================================== */

:root {
  --accent: #1e4f8a;
  --accent-dark: #153a68;
  --accent-soft: #eaf1f9;
  --ink: #182236;
  --muted: #5b6574;
  --line: #e3e8f0;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 34, 54, .06), 0 8px 24px -12px rgba(24, 34, 54, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }

p a, li a, .f-consent a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

section { padding: 80px 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -.01em;
  white-space: nowrap;
}
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang {
  font-size: 13px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }

.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px;
}
.burger svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: 10px; padding: 14px 22px;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  cursor: pointer; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-white { background: #fff; color: var(--accent-dark); }
.btn-white:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 96px 0 72px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero .container { max-width: 860px; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 7px 14px; margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -.02em;
  font-weight: 800; margin-bottom: 20px;
}

.lead {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--muted);
  max-width: 640px; margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 64px; text-align: left;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- sections */

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; margin-bottom: 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #cdd6e4; box-shadow: var(--shadow); }

.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; display: grid; gap: 6px; }
.card ul li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  opacity: .55;
}
.card .price { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.card .btn { margin-top: 6px; align-self: flex-start; }

/* --------------------------------------------------------------- industry */

.industry-link {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.industry-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.industry-link .tag { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.industry-link h3 { font-size: 20px; font-weight: 700; }
.industry-link p { color: var(--muted); font-size: 15px; flex: 1; }
.industry-link .more { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------- pricing */

table { border-collapse: collapse; }
.pricing { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.pricing th, .pricing td { padding: 18px 22px; text-align: left; vertical-align: top; }
.pricing thead th { background: var(--bg-soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pricing tbody tr { border-top: 1px solid var(--line); background: #fff; }
.pricing tbody tr.featured { background: var(--accent-soft); }
.pricing td strong { font-size: 17px; }
.pricing td.sum { font-size: clamp(17px, 2.6vw, 26px); font-weight: 800; color: var(--accent); white-space: nowrap; }
.pricing td.desc { color: var(--muted); font-size: 14px; min-width: 260px; }
.table-scroll { overflow-x: auto; }
.pricing-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.pricing-note li { list-style: none; }

/* -------------------------------------------------------------- features */

.feature { display: flex; gap: 14px; }
.feature .ic {
  flex: 0 0 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature .ic svg { width: 18px; height: 18px; }
  .feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- cases */

.cases-band { background: var(--bg-soft); }
.case-item { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; }
.case-item .tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.case-item h3 { font-size: 19px; margin: 4px 0 6px; }
.case-item p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 15px; font-weight: 800; color: var(--accent);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid var(--accent); border-radius: 50%; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ about */

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about-avatar {
  width: 100%; aspect-ratio: 1 / 1; max-width: 340px;
  border-radius: var(--radius); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.about-avatar svg { width: min(60%, 200px); height: auto; color: var(--accent); }
.about-avatar path, .about-avatar circle { stroke: currentColor; fill: none; stroke-width: 2; }
.about-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.about-list li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.about-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- cta band */

.cta-band { background: var(--accent-dark); color: #fff; border-radius: 18px; padding: 56px 48px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-band p { color: #c8d8ee; margin-bottom: 30px; font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.cta-contacts { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: #b9cbe4; }
.cta-contacts a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------------------------------------------------------------- accordion */

.accordion { display: grid; gap: 12px; max-width: 760px; }
.acc-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.acc-item.open { border-color: #cdd6e4; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-head::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.acc-item.open .acc-head::after { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.acc-item.open .acc-body { display: block; }

/* --------------------------------------------------------------- page hero */

.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.page-hero .container { max-width: 860px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin: 8px 0 16px; font-weight: 800; }
.page-hero .lead { margin: 0; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero .hero-actions { justify-content: flex-start; margin-top: 28px; }

/* ----------------------------------------------------------- problem blocks */

.ps-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.ps-block + .ps-block { margin-top: 14px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1.2fr .6fr; gap: 18px; align-items: start; }
.ps-grid .prob { font-size: 15px; font-weight: 700; }
.ps-grid .sol { color: var(--muted); font-size: 15px; }
.ps-grid .sol strong { color: var(--accent); }
.ps-grid .cos { text-align: right; font-weight: 800; color: var(--accent); white-space: nowrap; font-size: 16px; }

.cross-links { display: flex; gap: 28px; flex-wrap: wrap; }
.cross-links a { font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 48px 0 32px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: flex; align-items: center; color: var(--ink); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .f-icon { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; color: var(--muted); }
.footer-note { font-size: 13px; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.footer-legal a { color: var(--accent); border-bottom: 1px solid rgba(30, 79, 138, .25); }
.footer-legal a:hover { border-color: var(--accent); }

/* ------------------------------------------------------- callback form */

.call-wrap { max-width: 760px; margin: 0 auto; }
.call-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 24px; align-items: start; }
.call-aside {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; position: sticky; top: 96px;
}
.call-aside h3 { font-size: 17px; margin-bottom: 14px; }
.call-aside ul { list-style: none; display: grid; gap: 10px; }
.call-aside li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.call-aside li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.call-aside p { margin-top: 18px; font-size: 14px; color: var(--muted); }
.call-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: var(--shadow);
}
.call-card form { display: grid; gap: 18px; }
.f-row { display: grid; gap: 6px; }
.f-row.two { grid-template-columns: 1fr 1fr; }
.f-row label { font-size: 14px; font-weight: 600; color: var(--ink); }
.f-row label .req { color: var(--accent); }
.f-input, .f-select, .f-textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.f-textarea { resize: vertical; min-height: 90px; }
.f-hint { font-size: 13px; color: var(--muted); }

.f-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.f-consent input { margin-top: 3px; accent-color: var(--accent); }

/* honeypot: invisible to humans, seen by bots */
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.f-msg { display: none; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.f-msg.error { display: block; background: #fdecec; color: #a11; border: 1px solid #f3c1c1; }
.f-msg.error:empty { display: none; }
.f-msg.ok { display: block; background: #e8f7ee; color: #1a7a3f; border: 1px solid #bcddb; }
.f-msg.ok { border-color: #bce3cc; }
.f-submit { display: flex; align-items: center; justify-content: center; gap: 10px; }
.f-submit.is-loading { opacity: .7; pointer-events: none; }
.f-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: f-spin .7s linear infinite; display: none;
}
.f-submit.is-loading .f-spinner { display: inline-block; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.f-sent-note { display: none; text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.call-card.f-sent form { display: none; }
.call-card.f-sent .f-sent-note { display: block; }

/* -------------------------------------------------- legal pages (offer, privacy) */

.legal .about-list li::before { content: "-"; }
.legal .container > p + p { margin-top: 10px; }
.legal .about-list { margin-top: 10px; gap: 5px; padding-left: 2.1em; }
.legal .about-list li { padding-left: 1.2em; }
.legal .about-list + p { margin-top: 10px; }
.legal.offer .container > p:not(:first-of-type) { padding-left: 2.1em; text-indent: -2.1em; }
.legal .hang { padding-left: 2.1em; text-indent: -2.1em; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .call-grid { grid-template-columns: 1fr; }
  .call-aside { position: static; }

  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; margin-top: 40px; }
  .ps-grid { grid-template-columns: 1fr; }
  .ps-grid .cos { text-align: left; }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
  .header-inner .btn { display: none; }
  .call-card { padding: 26px 20px; }
  .f-row.two { grid-template-columns: 1fr; }

  .table-scroll { overflow: visible; }
  .pricing { border: none; }
  .pricing thead { display: none; }
  .pricing tbody, .pricing tbody tr { display: block; }
  .pricing tbody tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .pricing tbody tr:last-child { margin-bottom: 0; }
  .pricing td { display: block; padding: 0; }
  .pricing td + td { margin-top: 8px; }
  .pricing td.desc { min-width: 0; }
  .pricing td.sum { white-space: normal; }
}