:root {
  color-scheme: dark;
  --bg: #070b18;
  --bg-elevated: #0d1428;
  --panel: rgba(14, 24, 46, 0.84);
  --panel-solid: #111a31;
  --text: #f7fbff;
  --muted: #aab8ca;
  --subtle: #718095;
  --line: rgba(115, 202, 255, 0.22);
  --brand: #25bff8;
  --brand-strong: #0d8fe7;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --page: min(calc(100% - 24px), 1180px);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --text: #101827;
  --muted: #425168;
  --subtle: #6d7a8d;
  --line: rgba(6, 117, 183, 0.18);
  --brand: #087fc5;
  --brand-strong: #075ea8;
  --shadow: 0 18px 50px rgba(14, 42, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 191, 248, 0.22), transparent 22rem),
    linear-gradient(180deg, var(--bg), var(--bg-elevated) 46%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(37, 191, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 191, 248, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 9vw, 40px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  display: none;
}

.nav {
  display: none;
}

.theme-toggle {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.theme-icon {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset -7px -5px 0 var(--panel-solid);
}

[data-theme="light"] .theme-icon {
  box-shadow: 0 0 0 5px rgba(8, 127, 197, 0.16);
}

.section,
.footer {
  width: var(--page);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  gap: 28px;
  padding: 28px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 16px 34px rgba(13, 143, 231, 0.28);
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.quick-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quick-facts div,
.feature-card,
.price-card,
.contact,
.trust-strip,
.phone-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-facts div {
  padding: 15px;
}

.quick-facts dt {
  color: var(--subtle);
  font-size: 13px;
}

.quick-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.consultation-mockup {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(37, 191, 248, 0.16), transparent 52%),
    radial-gradient(circle at 78% 18%, rgba(37, 191, 248, 0.22), transparent 12rem),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.consultation-mockup::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(37, 191, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 191, 248, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.mockup-top,
.case-card,
.chat-line,
.signal-card {
  position: relative;
  z-index: 1;
}

.mockup-top {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 10px;
  align-items: center;
}

.mockup-dot {
  display: grid;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.mockup-dot::before {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
}

.mockup-top strong {
  font-size: 18px;
}

.mockup-top small {
  color: var(--muted);
}

.case-card {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .case-card {
  background: rgba(8, 127, 197, 0.07);
}

.case-card span,
.case-card strong {
  display: block;
}

.case-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.12;
}

.case-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.chat-line {
  max-width: 86%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 800;
}

.chat-line.client {
  justify-self: start;
  background: rgba(255, 255, 255, 0.05);
}

.chat-line.expert {
  justify-self: end;
  background: linear-gradient(135deg, rgba(37, 191, 248, 0.28), rgba(13, 143, 231, 0.12));
}

.signal-card {
  justify-self: end;
  align-self: end;
  width: min(260px, calc(100% - 24px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 12, 27, 0.78);
  color: #fff;
  backdrop-filter: blur(16px);
}

.signal-card span,
.signal-card strong {
  display: block;
}

.signal-card span {
  color: #9ddfff;
  font-size: 13px;
}

.signal-card strong {
  margin-top: 4px;
  font-size: 18px;
}

.trust-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
}

.trust-strip div {
  padding: 20px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 24px;
  margin-bottom: 72px;
}

.section-heading h2,
.workflow-copy h2,
.contact h2 {
  max-width: 640px;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  padding: 22px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--brand);
  font-weight: 900;
}

.feature-card p,
.workflow-copy p,
.price-card p,
.contact p {
  color: var(--muted);
}

.workflow {
  display: grid;
  gap: 28px;
  margin-bottom: 72px;
}

.phone-panel {
  overflow: hidden;
  padding: 12px;
  background: var(--panel-solid);
}

.legal-panel {
  min-height: 320px;
  padding: 24px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(37, 191, 248, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.legal-badge {
  display: inline-flex;
  margin-bottom: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.legal-panel h3 {
  font-size: 28px;
}

.legal-panel p {
  color: var(--muted);
}

.legal-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.legal-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

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

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
}

.pricing {
  display: grid;
  gap: 12px;
  margin-bottom: 72px;
}

.price-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(37, 191, 248, 0.18), transparent 60%),
    var(--panel);
}

.price-card h2 {
  font-size: clamp(38px, 12vw, 54px);
}

.price-card .button {
  width: 100%;
  margin-top: 10px;
}

.price-details {
  display: grid;
  gap: 10px;
}

.price-details span {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
}

.contact {
  display: grid;
  gap: 22px;
  margin-bottom: 36px;
  padding: 24px;
}

.contact p {
  margin-bottom: 0;
}

.contact-link {
  display: grid;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  overflow-wrap: anywhere;
}

.contact-link span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  margin-top: 6px;
  font-size: 20px;
}

.footer {
  display: grid;
  gap: 14px;
  padding: 22px 0 38px;
  color: var(--subtle);
  font-size: 14px;
}

.footer div,
.requisites {
  display: grid;
  gap: 6px;
}

.requisites {
  overflow-wrap: anywhere;
}

@media (min-width: 560px) {
  :root {
    --page: min(calc(100% - 32px), 1180px);
  }

  .brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    padding-right: 22px;
    padding-left: 22px;
  }

  .quick-facts,
  .trust-strip,
  .feature-grid,
  .price-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consultation-mockup {
    min-height: 440px;
  }

  .price-card .button {
    width: auto;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: start;
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
    gap: 26px;
    color: var(--muted);
    font-size: 14px;
  }

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

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 46px;
    align-items: center;
    min-height: calc(100svh - 72px);
    padding: 56px 0 84px;
  }

  h1 {
    max-width: 800px;
    font-size: clamp(54px, 6vw, 76px);
  }

  h2 {
    font-size: clamp(36px, 4vw, 48px);
  }

  .hero-lead {
    max-width: 640px;
    font-size: 20px;
  }

  .quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1;
    max-width: 780px;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -34px;
    margin-bottom: 112px;
  }

  .trust-strip div {
    padding: 24px;
  }

  .split {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 42px;
    align-items: start;
    margin-bottom: 112px;
  }

  .section-heading {
    position: sticky;
    top: 96px;
  }

  .feature-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: 230px;
    padding: 24px;
  }

  .workflow {
    grid-template-columns: 0.9fr 1fr;
    gap: 46px;
    align-items: center;
    margin-bottom: 112px;
  }

  .pricing {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 112px;
  }

  .price-card {
    padding: 34px;
  }

  .price-card h2 {
    font-size: clamp(52px, 5vw, 68px);
  }

  .price-details span {
    min-height: 96px;
    padding: 20px;
  }

  .contact {
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 48px;
    padding: 34px;
  }

  .contact-link {
    min-width: 280px;
    padding: 20px;
  }

  .contact-link strong {
    font-size: 24px;
  }
}
