/* ============ PRO ТСД — Landing styles ============ */
:root {
  --brand: #0058A2;
  --brand-600: #0058A2;
  --brand-700: #004073;
  --brand-400: #2f86d6;
  --accent: #14b8a6;
  --ink: #0f1b2d;
  --ink-2: #46586f;
  --muted: #6b7a90;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-grad: linear-gradient(135deg, #0058A2 0%, #0a73c4 45%, #14b8a6 130%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 12px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px rgba(15, 27, 45, .10);
  --shadow-lg: 0 30px 60px rgba(0, 64, 115, .25);
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 999px; border: 1px solid transparent;
  padding: 12px 22px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 88, 162, .28); }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 12px 26px rgba(0, 88, 162, .36); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { border-radius: 8px; }
.brand-name { font-size: 18px; letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.lang-btn { border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang-btn.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0;
  background: radial-gradient(60% 60% at 75% 10%, rgba(20, 184, 166, .18), transparent 60%),
              radial-gradient(55% 55% at 10% 0%, rgba(0, 88, 162, .16), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--brand-700); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 20px 0 16px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.hero-points li { white-space: nowrap; }

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1c2c43, #0f1b2d); box-shadow: var(--shadow-lg);
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0f1b2d; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; background: var(--bg-soft); overflow: hidden; display: flex; flex-direction: column; }
.app-topbar { background: var(--bg-grad); color: #fff; padding: 30px 18px 14px; display: flex; align-items: center; justify-content: space-between; }
.app-title { font-weight: 800; font-size: 17px; }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 4px rgba(124, 255, 178, .25); }
.app-tabhead { padding: 14px 18px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.doc-list { padding: 4px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-sm); }
.doc-ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; }
.ic-in { background: #16a34a; } .ic-out { background: #dc2626; } .ic-inv { background: #d97706; } .ic-trf { background: #7c3aed; }
.doc-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.doc-meta b { font-size: 13px; } .doc-meta small { font-size: 11px; color: var(--muted); }
.badge { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.badge-done { background: #e7f6ed; color: #16a34a; } .badge-draft { background: #eef1f6; color: var(--muted); }
.scan-fab { position: absolute; right: 16px; bottom: 70px; width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--brand); color: #fff; font-size: 26px; box-shadow: 0 10px 24px rgba(0, 88, 162, .45); }
.app-bottombar { display: flex; background: #fff; border-top: 1px solid var(--line); }
.bn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0; font-size: 17px; color: var(--muted); }
.bn i { font-size: 10px; font-style: normal; font-weight: 600; }
.bn-active { color: var(--brand); }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-soft); }
.strip-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; }
.strip-inner > span { color: var(--muted); font-weight: 600; font-size: 14px; }
.strip-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.section-sub { color: var(--ink-2); font-size: 17px; margin-top: 12px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.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: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e1ee; }

.feature-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: linear-gradient(135deg, rgba(0, 88, 162, .12), rgba(20, 184, 166, .14)); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* Document types */
.doc-type { display: flex; flex-direction: column; gap: 6px; }
.doc-type h3 { font-size: 18px; }
.doc-type p { color: var(--ink-2); font-size: 15px; }
.doc-tag { align-self: flex-start; font-weight: 800; font-size: 12px; color: #fff; padding: 5px 10px; border-radius: 8px; margin-bottom: 8px; }
.t-app { background: #0ea5e9; } .t-in { background: #16a34a; } .t-out { background: #dc2626; } .t-inv { background: #d97706; } .t-trf { background: #7c3aed; } .t-ptv { background: #db2777; }

/* Platforms */
.platform { text-align: center; position: relative; }
.pf-ic { font-size: 38px; margin-bottom: 10px; }
.platform h3 { font-size: 18px; margin-bottom: 6px; }
.platform p { color: var(--ink-2); font-size: 14px; }
.pf-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em; }
.pf-ready { background: #e7f6ed; color: #16a34a; }
.pf-soon { background: #fff4e5; color: #d97706; }
.pf-request { background: #eef1f6; color: var(--ink-2); }
.pf-demo { background: rgba(0, 88, 162, .1); color: var(--brand); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.step-n { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-grad); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 18px; color: var(--ink-2); font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price-num { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.price-cur { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.price-per { color: var(--muted); font-size: 14px; min-height: 22px; }
.price-per s { color: #aeb8c6; }
.price-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feats li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); }
.price-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.price-card.popular { border-color: var(--brand); box-shadow: 0 20px 44px rgba(0, 88, 162, .18); transform: translateY(-6px); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.save-badge { position: absolute; top: 16px; right: 16px; background: #e7f6ed; color: #16a34a; font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 8px; }

.price-note { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, rgba(0, 88, 162, .06), rgba(20, 184, 166, .08)); border-color: #d7e6f3; flex-wrap: wrap; }
.price-note h3 { font-size: 20px; margin-bottom: 6px; }
.price-note p { color: var(--ink-2); }

/* ---------- CTA / Contacts ---------- */
.cta-section { padding-top: 40px; }
.cta-card { background: var(--bg-grad); border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-card h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta-card p { color: rgba(255, 255, 255, .9); max-width: 600px; margin: 14px auto 32px; font-size: 17px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); gap: 18px; justify-content: center; }
.partner-card { background: #fff; border-radius: var(--radius); padding: 22px; text-align: left; box-shadow: var(--shadow-md); color: var(--ink); }
.partner-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.partner-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-grad); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.partner-name { display: flex; flex-direction: column; line-height: 1.3; }
.partner-name b { font-size: 18px; }
.partner-name small { font-size: 13px; color: var(--accent); font-weight: 600; }
.partner-contacts { display: flex; flex-direction: column; gap: 10px; }
.partner-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, border-color .2s, transform .15s; }
.partner-link:hover { background: #fff; border-color: var(--brand-400); transform: translateX(2px); }
.pl-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.pl-ic.ph { background: var(--brand); } .pl-ic.wa { background: #25D366; }
.pl-ic.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 88, 162, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); }
.to-top:active { transform: translateY(1px); }
@media (max-width: 620px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 6px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 6px; border-radius: 8px; }
  .nav a:hover { background: var(--bg-soft); }
  .burger { display: flex; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .pricing { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .header-actions .btn-primary { display: none; }
  .price-note { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 40px 22px; }
}

/* RTL not needed; KK uses cyrillic. Reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .contact-card { transition: none; }
}
