:root {
  --ink: #18201d;
  --muted: #66736e;
  --line: #dce4df;
  --surface: #ffffff;
  --soft: #f4f7f5;
  --mint: #7ed7b0;
  --teal: #0f8a7b;
  --coral: #f07b62;
  --gold: #e0b84f;
  --shadow: 0 24px 70px rgba(24, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(126, 215, 176, 0.24), transparent 34%),
    linear-gradient(315deg, rgba(240, 123, 98, 0.15), transparent 42%),
    #eef4f0;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0;
}

.checkout,
.trust-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.checkout {
  border-radius: 18px;
  padding: clamp(28px, 5vw, 54px);
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, var(--teal), #2fb88f);
}

.eyebrow,
.brand-subtitle,
.hero-copy p,
.plan-caption,
.summary span,
.message,
.benefits li {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 2px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 0;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.payment-form {
  margin-top: 36px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.plan-card {
  position: relative;
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.plan-card:hover,
.plan-card.selected {
  border-color: var(--teal);
  box-shadow: 0 12px 34px rgba(15, 138, 123, 0.14);
  transform: translateY(-1px);
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-topline,
.plan-caption {
  display: block;
  font-size: 15px;
}

.plan-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.plan-card-featured::after {
  content: "Выгодно";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(224, 184, 79, 0.18);
  color: #8f6815;
  font-size: 12px;
  font-weight: 700;
}

.email-field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  font-weight: 700;
}

.email-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}

.email-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 138, 123, 0.12);
}

.summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.summary strong {
  text-align: right;
}

.message {
  min-height: 22px;
  margin: 14px 0;
  font-size: 14px;
}

.message.error {
  color: #b43f32;
}

.message.success {
  color: var(--teal);
}

.pay-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.pay-button:hover {
  background: #0f1512;
}

.pay-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.trust-panel {
  border-radius: 18px;
  padding: 22px;
}

.app-preview {
  min-height: 380px;
  padding: 18px;
  border-radius: 16px;
  background: #17211d;
  color: white;
  overflow: hidden;
}

.preview-top {
  display: flex;
  gap: 7px;
  margin-bottom: 34px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.assistant-bubble,
.user-bubble {
  max-width: 88%;
  border-radius: 16px;
  padding: 16px;
  line-height: 1.45;
}

.assistant-bubble {
  background: rgba(126, 215, 176, 0.16);
  border: 1px solid rgba(126, 215, 176, 0.24);
}

.assistant-bubble small {
  color: var(--mint);
  font-weight: 800;
}

.assistant-bubble p {
  margin: 8px 0 0;
}

.user-bubble {
  margin: 18px 0 0 auto;
  background: white;
  color: var(--ink);
}

.assistant-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.assistant-lines span {
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.assistant-lines span:nth-child(2) {
  width: 76%;
}

.assistant-lines span:nth-child(3) {
  width: 58%;
  background: rgba(126, 215, 176, 0.26);
}

.benefits {
  padding: 24px 4px 4px;
}

.benefits h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.benefits ul {
  margin: 0;
  padding-left: 20px;
}

.benefits li {
  margin: 9px 0;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 620px);
    padding: 18px 0;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .trust-panel {
    order: -1;
  }

  .app-preview {
    min-height: 280px;
  }
}
