:root {
  --text: #171717;
  --muted: #5f6368;
  --soft: #f4f1eb;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: #ded8cc;
  --line-dark: #262626;
  --accent: #e05a2a;
  --accent-dark: #b63c17;
  --green: #27745b;
  --green-soft: #e8f1ec;
  --yellow: #f3c94d;
  --blue-soft: #e8eef6;
  --radius: 0px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

[hidden] { display: none !important; }

html.app-mode,
body.app-mode {
  height: 100%;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 2px solid var(--line-dark);
}

.topbar-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 22px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.brand-mark::before { content: "П1"; }

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line-dark);
  background: var(--white);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0;
}

.login-link:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--paper);
  border: 2px solid var(--line-dark);
  background: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line-dark);
  background: var(--accent);
}

.btn-light {
  color: var(--text);
  background: var(--white);
}

.btn-light:hover {
  color: var(--paper);
  background: var(--accent);
}

.hero {
  padding: 70px 0 58px;
  border-bottom: 2px solid var(--line-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: stretch;
}

h1, h2, h3, p { margin: 0; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 10px;
  color: var(--text);
  border: 2px solid var(--line-dark);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  align-items: center;
}

.hero-note {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.price-stamp {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 28px;
  border: 2px solid var(--line-dark);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--line-dark);
}

.price-stamp-top {
  display: grid;
  gap: 18px;
}

.stamp-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 9px;
  color: var(--paper);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-stamp h2 {
  max-width: 430px;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.price-stamp p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.stamp-list {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.stamp-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  border: 2px solid var(--line-dark);
  background: var(--soft);
  font-weight: 800;
  line-height: 1.35;
}

.stamp-list li::before {
  position: absolute;
  left: 14px;
  top: 14px;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.section {
  padding: 64px 0;
  border-bottom: 2px solid var(--line-dark);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.problem-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-card,
.feature-card,
.result-card {
  padding: 24px;
  border: 2px solid var(--line-dark);
  background: var(--white);
}

.problem-card:nth-child(2) { background: var(--blue-soft); }
.problem-card:nth-child(3) { background: var(--green-soft); }

.card-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--paper);
  background: var(--text);
  font-weight: 900;
}

.problem-card h3,
.feature-card h3,
.result-card h3 {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.problem-card p,
.feature-card p,
.result-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.plain-band {
  padding: 36px;
  border: 2px solid var(--line-dark);
  background: var(--text);
  color: var(--paper);
}

.plain-band-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.plain-band h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.plain-band p {
  margin-top: 18px;
  color: #cfc7b8;
  font-size: 19px;
  line-height: 1.5;
}

.price-big {
  padding: 24px;
  border: 2px solid var(--paper);
  background: var(--accent);
}

.price-big b {
  display: block;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.price-big span {
  display: block;
  margin-top: 16px;
  color: #ffe4d7;
  font-size: 17px;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 180px;
}

.feature-tag {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid var(--line-dark);
  background: var(--yellow);
  font-weight: 900;
  font-size: 18px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--line-dark);
  background: var(--line-dark);
  gap: 2px;
}

.workflow-item {
  min-height: 250px;
  padding: 22px;
  background: var(--white);
  display: grid;
  align-content: start;
  gap: 24px;
}

.workflow-item > div {
  margin-top: 52px;
}

.workflow-item b {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.workflow-item h3 {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.workflow-item p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 15px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-card {
  min-height: 240px;
  display: grid;
  align-content: start;
  background: var(--soft);
}

.result-card .card-num {
  background: var(--green);
}

.demo-section {
  padding: 70px 0 86px;
}

.demo-box {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 34px;
  align-items: start;
  padding: 34px;
  border: 2px solid var(--line-dark);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--line-dark);
}

.demo-copy h2 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.demo-copy p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.demo-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.demo-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
}

.demo-list li::before {
  position: absolute;
  left: 0;
  content: "—";
  color: var(--accent);
  font-weight: 900;
}

.demo-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--line-dark);
  background: var(--soft);
}

.demo-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.demo-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--text);
  border: 2px solid var(--line-dark);
  background: var(--white);
  outline: none;
}

.demo-form input:focus {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--line-dark);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  background: var(--paper);
  border-top: 2px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 12px;
  color: var(--muted);
  background: var(--paper);
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .top-actions { justify-content: end; }
  .hero-grid,
  .plain-band-grid,
  .demo-box {
    grid-template-columns: 1fr;
  }
  .problem-row,
  .result-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .top-actions .btn { display: none; }
  .login-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
  .topbar-inner { min-height: 64px; }
  .hero { padding: 46px 0 44px; }
  .lead { font-size: 18px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .price-stamp,
  .demo-box {
    box-shadow: 5px 5px 0 var(--line-dark);
  }
  .plain-band,
  .demo-box {
    padding: 24px;
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .workflow {
    grid-template-columns: 1fr;
  }
}
