:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-soft: #0a1020;
  --panel: #0e1729;
  --panel-strong: #111d34;
  --text: #f7fbff;
  --muted: #aab6c8;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #075cff;
  --blue-light: #3d82ff;
  --white: #ffffff;
  --danger: #ff6b6b;
  --success: #82f0bd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(7, 92, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #05070c 0%, #08101f 42%, #05070c 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 65%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  width: 38px;
  height: 38px;
}

.brand-name {
  overflow: hidden;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.header-nav a,
.nav-button {
  transition: color 180ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--white);
}

.nav-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 74px 0 90px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 870px;
  margin-bottom: 26px;
  font-size: clamp(2.85rem, 6.8vw, 5.65rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.16rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: #d8e1ef;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(7, 92, 255, 0.35);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1c6cff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.search-visual {
  justify-self: end;
  width: min(100%, 470px);
}

.search-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 23, 41, 0.86);
  box-shadow: var(--shadow);
}

.serp-window {
  border-color: rgba(255, 255, 255, 0.18);
  background: #f8fafc;
  color: #172033;
}

.serp-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 18px 12px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  padding: 14px 18px;
  background: #ffffff;
  color: #172033;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(22, 32, 51, 0.08);
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid #075cff;
  border-radius: 999px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #075cff;
  transform: rotate(45deg);
}

.serp-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #e6ebf2;
  padding: 0 20px 12px;
  color: #69758a;
  font-size: 0.82rem;
  font-weight: 700;
}

.serp-tabs .active {
  color: #075cff;
}

.serp-result {
  margin: 0 18px;
  border-bottom: 1px solid #e6ebf2;
  padding: 17px 2px;
}

.serp-result h3 {
  margin-bottom: 4px;
  color: #1a53c8;
  font-size: 1.08rem;
  line-height: 1.2;
}

.serp-result p {
  margin-bottom: 0;
  color: #4d5c72;
  font-size: 0.89rem;
  line-height: 1.45;
}

.serp-result .serp-url {
  margin-bottom: 5px;
  color: #16833c;
  font-size: 0.8rem;
  font-weight: 700;
}

.serp-ad {
  position: relative;
  margin-top: 2px;
  border: 1px solid rgba(7, 92, 255, 0.22);
  border-radius: 8px;
  padding: 18px 18px 17px;
  background: linear-gradient(135deg, rgba(7, 92, 255, 0.08), rgba(255, 255, 255, 0));
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.serp-ad.is-changing {
  opacity: 0.62;
  transform: translateY(4px);
}

.serp-badge {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(7, 92, 255, 0.1);
  color: #075cff;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .serp-ad {
    transition: none;
  }

  .client-logo-track {
    animation: none;
  }
}

.problem,
.project,
.authority,
.steps,
.application {
  padding: 92px 0;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 38px;
}

.section-heading p,
.form-intro p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.split-text {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 46px;
  align-items: start;
}

.split-text > p {
  color: #d8e1ef;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.32;
}

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

.check-list li {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 18px 17px 46px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce6f4;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--blue);
}

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

.feature-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-grid span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--blue-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.authority-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(115deg, rgba(7, 92, 255, 0.18), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.authority-panel h2 {
  max-width: 940px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.authority-panel strong {
  color: var(--blue-light);
}

.client-logo-marquee {
  position: relative;
  overflow: hidden;
  margin-inline: calc(clamp(30px, 6vw, 64px) * -1);
  padding: 8px 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-logo-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: client-logo-scroll 54s linear infinite;
}

.client-logo-item {
  display: grid;
  place-items: center;
  width: clamp(230px, 24vw, 310px);
  height: clamp(154px, 16vw, 198px);
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 18px 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.client-logo-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes client-logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.step-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--white);
  color: #05070c;
  font-weight: 800;
}

.step-list p {
  margin-bottom: 0;
  color: #dde7f5;
  font-weight: 600;
}

.notice {
  margin-top: 18px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(7, 92, 255, 0.12);
  color: #dfe8f6;
}

.application {
  display: block;
}

.form-intro {
  display: grid;
  justify-items: start;
  max-width: 880px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 7vw, 72px);
  background:
    linear-gradient(120deg, rgba(7, 92, 255, 0.18), transparent 58%),
    rgba(14, 23, 41, 0.92);
  box-shadow: var(--shadow);
}

.form-intro h2 {
  max-width: 780px;
  margin-bottom: 18px;
}

.form-intro p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: #dfe8f6;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #dfe8f6 50%),
    linear-gradient(135deg, #dfe8f6 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

option {
  background: #101827;
  color: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(7, 92, 255, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
}

.form-status {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(18px);
}

.modal-overlay[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 92, 255, 0.18), transparent 46%),
    #0c1424;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.modal-progress {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 28px 78px 24px 30px;
}

.modal-progress div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-progress strong {
  color: var(--white);
  font-size: 0.86rem;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 11.11%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

.step-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 42px);
}

.step-content h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.step-content > p:not(.eyebrow):not(.field-error) {
  max-width: 560px;
  color: var(--muted);
}

.step-field {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.step-field label {
  font-size: 1rem;
}

.step-field input,
.step-field select,
.step-field textarea {
  min-height: 58px;
  font-size: 1.05rem;
}

.step-field textarea {
  min-height: 150px;
}

.step-field.has-error input,
.step-field.has-error select,
.step-field.has-error textarea {
  border-color: var(--danger);
}

.step-field .field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .split-text {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .search-visual {
    justify-self: stretch;
    width: 100%;
  }

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

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
  }

  .step-list span {
    margin-bottom: 0;
  }

}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 28px, 1160px);
  }

  .header-nav {
    display: none;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    max-width: 210px;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .hero,
  .problem,
  .project,
  .authority,
  .steps,
  .application {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.85rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .button {
    width: 100%;
  }

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

  .client-logo-item {
    width: 196px;
    height: 132px;
    padding: 14px 16px;
  }

  .form-footer,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-overlay {
    align-items: end;
    padding: 12px;
  }

  .modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .modal-progress {
    padding: 24px 68px 20px 20px;
  }

  .modal-progress div:first-child,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions .form-status {
    order: -1;
  }

  .site-footer {
    flex-direction: column;
  }
}
