/* Файл: BillingMeldFront/css/styles.css */

:root {
  --billing-bg: #18120f;
  --billing-bg-deep: #0d0908;
  --billing-surface: rgba(33, 25, 21, 0.84);
  --billing-surface-strong: rgba(41, 30, 25, 0.94);
  --billing-surface-soft: rgba(68, 47, 36, 0.48);
  --billing-line: rgba(219, 179, 122, 0.16);
  --billing-line-strong: rgba(104, 210, 164, 0.24);
  --billing-text: #f7efe8;
  --billing-text-soft: #ddcfc2;
  --billing-text-muted: #a99686;
  --billing-accent: #ddb37a;
  --billing-accent-strong: #68d2a4;
  --billing-accent-hot: #ff9361;
  --billing-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--billing-text);
  background:
    radial-gradient(circle at 12% 14%, rgba(104, 210, 164, 0.12), transparent 20%),
    radial-gradient(circle at 86% 10%, rgba(221, 179, 122, 0.18), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(255, 147, 97, 0.08), transparent 18%),
    linear-gradient(180deg, var(--billing-bg) 0%, var(--billing-bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0%, rgba(221, 179, 122, 0.04) 34%, transparent 68%);
  background-size: 72px 72px, 72px 72px, auto;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 36px), var(--container));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.page-frame {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid var(--billing-line);
  background:
    radial-gradient(circle at top right, rgba(221, 179, 122, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(104, 210, 164, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(27, 19, 16, 0.98), rgba(13, 10, 9, 0.98));
  box-shadow: var(--billing-shadow);
}

.page-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 210, 164, 0.06), transparent 18%),
    radial-gradient(circle at 78% 26%, rgba(221, 179, 122, 0.07), transparent 24%);
  pointer-events: none;
}

.topbar,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 34px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1a120e;
  background: linear-gradient(135deg, var(--billing-accent-strong), var(--billing-accent));
  box-shadow: 0 16px 32px rgba(221, 179, 122, 0.22);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  color: var(--billing-text-muted);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--billing-text-soft);
  transition: 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--billing-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--billing-line);
}

.eyebrow,
.section-kicker,
.stage-label,
.hero-note-label,
.contact-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0d5ae;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 34px;
  padding: 34px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  padding-top: 8px;
}

.hero h1,
.section-head h2,
.page-intro h1,
.info-card h2,
.legal-title {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 8.8ch;
  margin-top: 18px;
  font-size: clamp(3rem, 4.35vw, 5.2rem);
  line-height: 0.92;
}

.hero-lead,
.hero-sublead,
.story-card p,
.feature-card p,
.usecase-card p,
.info-card p,
.contact-note,
.footer-note {
  color: var(--billing-text-soft);
  line-height: 1.82;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.hero-sublead {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 1rem;
}

.hero-ecosystem,
.ecosystem-note {
  margin: 16px 0 0;
  color: #cffff0;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.button {
  color: #1a120e;
  background: linear-gradient(135deg, var(--billing-accent-strong), var(--billing-accent));
  box-shadow: 0 14px 30px rgba(221, 179, 122, 0.18);
}

.button-secondary {
  color: var(--billing-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--billing-line-strong);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8efe6;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-stage {
  display: grid;
  gap: 18px;
}

.stage-screen,
.hero-note,
.story-card,
.feature-card,
.duo-card,
.usecase-card,
.info-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--billing-line);
  background: linear-gradient(180deg, var(--billing-surface-strong), var(--billing-surface));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.stage-screen {
  min-height: 560px;
  padding: 28px;
}

.stage-grid,
.stage-line,
.stage-node,
.stage-card {
  position: absolute;
}

.stage-grid {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

.stage-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(28, 20, 17, 0.8);
  backdrop-filter: blur(8px);
}

.stage-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.stage-card p {
  margin: 8px 0 0;
  color: var(--billing-text-soft);
}

.stage-card-primary {
  left: 8%;
  top: 10%;
  width: 42%;
}

.stage-card-secondary {
  right: 8%;
  top: 26%;
  width: 40%;
}

.stage-card-tertiary {
  left: 18%;
  bottom: 12%;
  width: 48%;
}

.stage-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(104, 210, 164, 0.86), transparent);
}

.line-a {
  width: 54%;
  left: 24%;
  top: 32%;
  transform: rotate(-14deg);
}

.line-b {
  width: 42%;
  left: 16%;
  bottom: 28%;
  background: linear-gradient(90deg, transparent, rgba(221, 179, 122, 0.86), transparent);
}

.line-c {
  width: 40%;
  right: 12%;
  bottom: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 141, 91, 0.86), transparent);
  transform: rotate(8deg);
}

.stage-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--billing-accent-strong), var(--billing-accent));
  box-shadow: 0 0 0 10px rgba(221, 179, 122, 0.1);
}

.node-a { left: 18%; top: 24%; }
.node-b { right: 18%; top: 34%; }
.node-c { left: 42%; bottom: 32%; }
.node-d { right: 22%; bottom: 16%; }

.hero-note {
  padding: 24px;
}

.hero-note strong,
.story-card h3,
.feature-card h3,
.usecase-card h3,
.info-card h2 {
  display: block;
  margin: 12px 0 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.content {
  position: relative;
  z-index: 1;
  padding: 8px 34px 42px;
}

.story-section,
.feature-section,
.duo-section,
.usecase-section,
.closing-section,
.page-grid,
.legal-stack {
  margin-top: 38px;
}

.section-head {
  max-width: 940px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 3.7vw, 4.2rem);
  line-height: 1;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 18px;
}

.story-card,
.feature-card,
.duo-card,
.usecase-card,
.info-card {
  padding: 26px;
}

.story-card-accent {
  background:
    radial-gradient(circle at top right, rgba(255, 147, 97, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(43, 30, 25, 0.98), rgba(26, 18, 15, 0.96));
}

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

.feature-tag {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(104, 210, 164, 0.18), rgba(221, 179, 122, 0.2));
  color: #fff2dd;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 700;
}

.duo-section {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.duo-card-large h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--billing-text-soft);
  line-height: 1.78;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--billing-accent-strong), var(--billing-accent));
}

.response-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(21, 15, 13, 0.58);
}

.response-card pre {
  margin: 16px 0 0;
  overflow-x: auto;
  color: #fff4e8;
  font-size: 0.94rem;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.closing-card {
  max-width: 980px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--billing-line-strong);
  background:
    linear-gradient(135deg, rgba(104, 210, 164, 0.12), rgba(221, 179, 122, 0.12)),
    rgba(28, 20, 17, 0.94);
}

.closing-card p {
  margin: 16px 0 0;
  max-width: 760px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(1.28rem, 1.9vw, 1.84rem);
  line-height: 1.34;
  color: #fff6ee;
}

.page-intro {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 64px 34px 0;
}

.page-intro h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.page-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 0 34px;
}

.contact-list,
.legal-stack {
  display: grid;
  gap: 18px;
}

.contact-item {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.contact-value {
  margin-top: 8px;
  line-height: 1.72;
  color: var(--billing-text);
}

.legal-stack {
  position: relative;
  z-index: 1;
  padding: 0 34px;
}

.legal-title {
  font-size: 1.08rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding: 24px 34px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--billing-text-muted);
}

.footer-nav a:hover {
  color: var(--billing-text);
}

@media (max-width: 1140px) {
  .hero,
  .story-grid,
  .feature-grid,
  .duo-section,
  .usecase-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--container));
    padding: 10px 0 20px;
  }

  .topbar,
  .hero,
  .content,
  .page-intro,
  .page-grid,
  .legal-stack,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .stage-screen {
    min-height: 420px;
  }

  .story-card,
  .feature-card,
  .duo-card,
  .usecase-card,
  .info-card,
  .hero-note {
    padding: 20px;
  }
}
