:root {
  --ink: #201e1b;
  --bg: #faf8f4;
  --bg-soft: #f2ede4;
  --peach: #e9dcc9;
  --peach-soft: #f2e9db;
  --accent: #bd642f;
  --accent-2: #c9793f;
  --accent-ink: #ffffff;
  --navy: #201e1e;
  --line: #e6ded0;
  --muted: #7a7266;
  --muted-light: rgba(250, 248, 244, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font: "Golos Text", 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.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(189, 100, 47, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); background: #a8592a; box-shadow: 0 8px 16px -6px rgba(189, 100, 47, 0.4); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  flex-shrink: 0;
}
.logo-icon svg { width: 16px; height: 16px; }
.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-domain {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.logo--footer .logo-mark { color: #fff; }
.logo--footer .logo-domain { color: var(--muted-light); }

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sections generic */
section { padding: 96px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--accent-2); }
.eyebrow-center { display: block; text-align: center; }
.section-title { font-size: clamp(26px, 3.2vw, 36px); }
.section-title.center { text-align: center; }
.section-title--light { color: #fff; }
.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
  max-width: 560px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub--light { color: var(--muted-light); }

/* Hero */
.hero {
  background: radial-gradient(120% 100% at 20% 0%, var(--peach-soft) 0%, var(--bg) 55%);
  padding: 72px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-text, .hero-visual { min-width: 0; }
.badge {
  display: inline-block;
  background: var(--peach);
  color: #a04a12;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-text h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero mockup */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.mockup-laptop {
  width: 100%;
  max-width: 460px;
}
.mockup-screen {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 4px;
  padding: 18px 20px 22px;
  box-shadow: 0 30px 60px -20px rgba(24, 23, 28, 0.25);
  overflow: hidden;
}
.mockup-base {
  height: 12px;
  background: linear-gradient(180deg, #e4dbca, #cfc4ad);
  border-radius: 0 0 10px 10px;
  margin: 0 -6px;
}
.mockup-topbar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mockup-title { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mockup-stat {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.mockup-stat-label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.mockup-stat strong { font-family: var(--font-display); font-size: 13px; }
.mockup-delta { font-size: 10.5px; font-weight: 700; color: #1a9152; }
.mockup-chart { margin-bottom: 18px; }
.mockup-chart-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.mockup-sparkline { width: 100%; height: 54px; }
.mockup-sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mockup-table-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.mockup-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
}
.mockup-cell-id, .mockup-cell-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-cell-sum { font-weight: 600; font-size: 10px; white-space: nowrap; }
.mockup-badge {
  background: #e4f6ea;
  color: #1a9152;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}
.mockup-badge--pending { background: var(--peach); color: #a04a12; }

.mockup-phone {
  position: absolute;
  right: -16px;
  bottom: -125px;
  width: 168px;
  background: #fff;
  border: 6px solid var(--ink);
  border-radius: 26px;
  padding: 18px 12px 14px;
  box-shadow: 0 24px 40px -16px rgba(24, 23, 28, 0.35);
}
.mockup-phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
}
.mockup-phone-header { font-family: var(--font-display); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.mockup-phone-nav { display: flex; gap: 6px; margin-bottom: 12px; }
.mockup-phone-nav span { font-size: 8px; color: var(--muted); font-weight: 600; }
.mockup-phone-stat {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 9px;
  color: var(--muted);
}
.mockup-phone-stat strong { font-family: var(--font-display); font-size: 11.5px; color: var(--ink); white-space: nowrap; }

/* Features */
.features-head { max-width: 640px; margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.feature-tile { min-width: 0; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--peach);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-tile h3 { font-size: 16px; margin-bottom: 6px; }
.feature-tile p { color: var(--muted); font-size: 13.5px; }

/* Integrations */
.integrations-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.integrations-text, .integrations-grid { min-width: 0; }
.integrations-tag {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.integration-chip {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
  box-shadow: 0 6px 16px -10px rgba(24, 23, 28, 0.2);
}
.integration-chip--1c { color: #d6373f; }
.integration-chip--bitrix { color: #2fc7f7; }
.integration-chip--amo { color: #1a6df2; }
.integration-chip--sklad { color: #2f8ff2; }
.integration-chip--more { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.process-step {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-width: 0;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14.5px; }

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.advantage-tile { text-align: center; min-width: 0; }
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--accent);
  margin-bottom: 16px;
}
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-tile h3 { font-size: 15.5px; margin-bottom: 6px; }
.advantage-tile p { color: var(--muted); font-size: 13px; }

/* CTA banner */
.cta-banner { padding: 0 0 96px; }
.cta-banner-inner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189,100,47,0.18), transparent 70%);
}
.cta-banner-inner h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; max-width: 420px; }
.cta-banner-inner p { color: var(--muted-light); max-width: 380px; font-size: 15px; }
.cta-banner-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; z-index: 1; }
.cta-banner-tag { color: var(--muted-light); font-size: 13px; font-weight: 500; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  align-items: stretch;
}
.pricing-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  background: #fff;
}
.pricing-card--featured {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 8px; }
.pricing-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.pricing-card--featured .pricing-desc { color: var(--muted-light); }
.pricing-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.pricing-card li { font-size: 14.5px; padding-left: 22px; position: relative; }
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: transform .2s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: var(--bg-soft);
}
.faq-answer p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; font-family: var(--font); }

/* Contact */
.contact { background: var(--navy); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-text, .contact-form { min-width: 0; }
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 10px; font-size: 15px; color: var(--muted-light); }
.contact-list span { min-width: 90px; }
.contact-list a { font-weight: 600; color: #fff; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color .15s ease;
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-note { min-height: 20px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.form-note.success { color: #1a7a3c; }
.form-note.error { color: #c8371a; }
.form-privacy { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-light); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--muted-light); }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: var(--muted-light); opacity: .7; }

/* Responsive */

/* Tablet and below: nav collapses to burger here too — at 768–900px wide
   the full desktop nav + logo + CTA button don't fit in the header without
   wrapping/overflowing, so the breakpoint has to sit above that range. */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 90;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding-bottom: 60px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-card { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { align-items: flex-start; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup-phone { display: none; }
  .integrations-card { padding: 28px; }
}

/* Narrow phones: logo + CTA button + burger don't all fit at full size */
@media (max-width: 440px) {
  .header-inner { gap: 12px; }
  .logo-domain { display: none; }
  .header-actions { gap: 10px; }
  .btn-sm { padding: 8px 13px; font-size: 12.5px; }
}
