:root {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: #111a2e;
  --panel-soft: #16233a;
  --text: #eef4ff;
  --muted: #b8c4d8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #57d6a2;
  --accent-strong: #27b47a;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --anchor-offset: 8.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(87, 214, 162, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(82, 132, 255, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

section,
main,
footer,
[id] {
  scroll-margin-top: var(--anchor-offset);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent), #6aa4ff);
  color: #07111f;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

main,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 5rem 0;
}

.hero-content {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.25rem, 5.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.loading {
  pointer-events: none;
}

.button.loading::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.55rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #07111f;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.button.light {
  border-color: transparent;
  background: #fff;
  color: #101827;
}

.button.danger {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 120, 120, 0.12);
  color: #ffd4d4;
}

.hero-card,
.card,
.feature,
.deadline,
.timeline > div,
.request-section,
.order-form,
.law-card {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem;
}

.hero-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.list-title {
  display: block;
  margin-top: 1.3rem;
  color: var(--text);
}

.metric {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--warning);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section {
  padding: 4rem 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 1.7rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.35rem;
  background-color: var(--panel);
}

.card p,
.feature p,
.deadline p,
.timeline p,
.request-section p,
.section-head p {
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(1.4rem, 4vw, 2rem);
  background-color: var(--panel-soft);
}

.steps {
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(11, 17, 32, 0.42);
}

.step span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #07111f;
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
}

.deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 4rem 0 1rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(87, 214, 162, 0.12)),
    var(--panel);
}

.deadline > div {
  max-width: 46rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline > div {
  padding: 1.2rem;
}

.timeline strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
}

.law-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.law-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.2rem;
  background-color: var(--panel);
}

.law-card small {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.law-card strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.law-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.law-card:hover {
  border-color: rgba(87, 214, 162, 0.55);
  background: rgba(87, 214, 162, 0.08);
}

.request-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin: 4rem 0;
  padding: clamp(1.4rem, 4vw, 2rem);
  background-color: var(--panel-soft);
}

.request-intro {
  max-width: 52rem;
}

.request-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.request-title-row h2 {
  margin-bottom: 1rem;
}

.request-counter {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(87, 214, 162, 0.34);
  border-radius: 1rem;
  background: rgba(87, 214, 162, 0.08);
}

.request-counter span {
  display: grid;
  min-width: 5.4rem;
  gap: 0.1rem;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.request-counter span + span {
  border-left: 1px solid rgba(87, 214, 162, 0.24);
}

.request-counter strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.request-section > .details-form {
  grid-column: 1 / -1;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background-color: rgba(11, 17, 32, 0.5);
}

.order-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  padding: 0.85rem 0.95rem;
  outline: none;
}

.order-form textarea {
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--accent);
}

.order-form option {
  background: #101827;
  color: var(--text);
}

.span-2 {
  grid-column: span 2;
}

.span-full {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
}

.consent input {
  width: 1rem;
  margin-top: 0.25rem;
}

.order-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.94rem;
}

.details-form[hidden] {
  display: none;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metrika-informer {
  display: inline-flex;
  line-height: 0;
}

@media (max-width: 900px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .cards,
  .timeline,
  .law-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deadline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --anchor-offset: 12rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .request-title-row {
    flex-direction: column;
  }

  .cards,
  .timeline,
  .law-list,
  .order-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  h1 {
    letter-spacing: -0.06em;
  }
}
