:root {
  --bg: #0b0c10;
  --card: #111318;
  --text: #e9eef5;
  --muted: #a7b0bf;
  --brand: #2ee59d;
  --line: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(46, 229, 157, .15), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(46, 229, 157, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  min-height: 44px;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 229, 157, .35);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(46, 229, 157, 1), rgba(46, 229, 157, .65));
  color: #04130c;
  border-color: transparent;
}

.btn.primary:hover {
  filter: brightness(1.03)
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 12, 16, .65);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(46, 229, 157, .18);
  border: 1px solid rgba(46, 229, 157, .35);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(46, 229, 157, .08);
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
}

.hero {
  padding: 48px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr;
  gap: 18px;
  align-items: stretch;
}

.hero-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-left {
  padding: 26px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.hero-left:before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(46, 229, 157, .35), transparent 65%);
  transform: rotate(18deg);
  filter: blur(2px);
  pointer-events: none;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.6px;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 0 18px;
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-title {
  font-weight: 800;
  font-size: 18px
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

label {
  font-size: 13px;
  color: var(--muted)
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  outline: none;
  font-size: 16px;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 229, 157, .3) transparent;
}

textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: transparent;
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(46, 229, 157, .3);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(46, 229, 157, .5);
}

input:focus,
textarea:focus {
  border-color: rgba(46, 229, 157, .5)
}

textarea {
  min-height: 100px;
  resize: vertical
}

.file {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file input[type="file"] {
  display: none;
}

.file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px dashed rgba(46, 229, 157, .35);
  background: rgba(46, 229, 157, .08);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}

.file-button:hover {
  background: rgba(46, 229, 157, .12);
  border-color: rgba(46, 229, 157, .5);
  transform: translateY(-1px);
}

.file-button:active {
  transform: translateY(0);
}

.file-list {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-actions .btn {
  flex: 1;
}

.note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

section {
  padding: 28px 0
}

.section-title {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 18px
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(46, 229, 157, .12);
  border: 1px solid rgba(46, 229, 157, .25);
  margin-bottom: 10px;
  font-size: 20px;
}

.step-wide {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
}

.step-wide {
  text-align: center;
}

.step-wide .icon {
  margin: 0 auto 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.step p {
  margin: 0;
  color: var(--muted)
}

.promo {
  padding: 26px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(0deg, rgba(11, 12, 16, .78), rgba(11, 12, 16, .78)),
    url("assets/promo.jpg") center/cover no-repeat;
}

.promo h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -.3px;
}

.promo p {
  margin: 0 0 14px;
  color: rgba(233, 238, 245, .85);
  max-width: 70ch
}

.promo .btn {
  margin-top: 4px
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.buy-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: .2s ease;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  -webkit-tap-highlight-color: transparent;
}

.buy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 229, 157, .35)
}

.buy-img {
  height: 145px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

.buy-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.buy-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.buy-body h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.buy-body .btn {
  width: 100%
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px;
  cursor: pointer;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none
}

.chev {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: .2s ease;
  flex: 0 0 auto;
}

details[open] .chev {
  transform: rotate(180deg);
  border-color: rgba(46, 229, 157, .35)
}

.faq-body {
  padding: 0 16px 16px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.contact-card b {
  color: var(--text)
}

.status {
  display: none;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
}

/* Прогресс-бар загрузки */
.progress-container {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.progress-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
    rgba(46, 229, 157, 0.8),
    rgba(46, 229, 157, 1),
    rgba(46, 229, 157, 0.8)
  );
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  animation: shimmer 1.5s infinite;
  box-shadow: 0 0 10px rgba(46, 229, 157, 0.5);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(46, 229, 157, 0.3);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .steps {
    grid-template-columns: 1fr
  }

  .buy-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .contacts {
    grid-template-columns: 1fr
  }

  .container {
    padding: 0 16px
  }

  .hero {
    padding: 32px 0 16px
  }

  section {
    padding: 24px 0
  }

  .hero-left {
    padding: 20px;
    min-height: 280px
  }

  .form-card {
    padding: 16px
  }

  .promo {
    padding: 20px
  }

  h1 {
    font-size: clamp(24px, 6vw, 36px)
  }

  .section-title {
    font-size: 24px
  }
}

@media (max-width: 640px) {
  .buy-grid {
    grid-template-columns: 1fr
  }

  .grid2 {
    grid-template-columns: 1fr
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px
  }

  .logo {
    font-size: 14px
  }

  .logo-badge {
    width: 30px;
    height: 30px
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px
  }

  .hero-left {
    padding: 18px;
    min-height: auto
  }

  .hero-left:before {
    width: 240px;
    height: 240px
  }

  .form-card {
    padding: 14px
  }

  .pill {
    font-size: 12px;
    padding: 5px 8px
  }

  .hero-points {
    gap: 8px
  }

  h1 {
    font-size: clamp(22px, 7vw, 32px);
    margin: 8px 0
  }

  .sub {
    font-size: 15px;
    margin: 0 0 14px
  }

  .step {
    padding: 14px
  }

  .icon {
    width: 38px;
    height: 38px;
    font-size: 18px
  }

  .step h3 {
    font-size: 16px
  }

  .promo {
    padding: 18px
  }

  .promo h3 {
    font-size: clamp(18px, 5vw, 28px)
  }

  .buy-card {
    min-height: 220px
  }

  .buy-img {
    height: 130px
  }

  .buy-body {
    padding: 12px;
    gap: 8px
  }

  .buy-body h4 {
    font-size: 15px
  }

  input,
  textarea {
    padding: 10px;
    font-size: 15px
  }

  .form-title {
    font-size: 16px
  }

  .contact-card {
    padding: 14px;
    font-size: 14px
  }

  footer {
    padding: 16px 0 24px;
    font-size: 13px
  }
}

@media (max-width: 520px) {
  nav {
    display: none
  }

  .topbar {
    padding: 10px 0
  }

  .logo>div:first-child {
    font-size: 12px
  }

  .logo>div:last-child {
    font-size: 14px
  }

  .container {
    padding: 0 14px
  }

  .hero {
    padding: 24px 0 12px
  }

  section {
    padding: 20px 0
  }

  h1 {
    font-size: clamp(20px, 8vw, 28px)
  }

  .sub {
    font-size: 14px
  }

  .btn {
    padding: 9px 12px;
    font-size: 13px;
    gap: 6px
  }

  .btn.primary {
    width: 100%
  }

  .hero-left {
    padding: 16px
  }

  .form-card {
    padding: 12px;
    gap: 10px
  }

  .form-actions {
    flex-direction: column
  }

  .form-actions .btn {
    width: 100%
  }

  .pill {
    font-size: 11px;
    padding: 4px 7px;
    gap: 6px
  }

  .step {
    padding: 12px
  }

  .step h3 {
    font-size: 15px;
    margin: 0 0 6px
  }

  .step p {
    font-size: 14px
  }

  .promo {
    padding: 16px
  }

  .section-title {
    font-size: 20px
  }

  .section-sub {
    font-size: 14px;
    margin: 0 0 14px
  }

  .buy-card {
    min-height: 200px
  }

  .buy-img {
    height: 120px
  }

  .buy-body {
    padding: 10px
  }

  .buy-body h4 {
    font-size: 14px
  }

  .buy-body .btn {
    font-size: 13px;
    padding: 8px 12px
  }

  summary {
    padding: 12px;
    font-size: 15px
  }

  .faq-body {
    padding: 0 12px 12px;
    font-size: 14px
  }

  .contact-card {
    padding: 12px;
    font-size: 13px
  }

  .note {
    font-size: 11px
  }

  input,
  textarea {
    font-size: 14px
  }

  label {
    font-size: 12px
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 12px
  }

  h1 {
    font-size: 18px
  }

  .section-title {
    font-size: 18px
  }

  .logo-badge {
    width: 28px;
    height: 28px;
    font-size: 16px
  }

  .icon {
    width: 34px;
    height: 34px;
    font-size: 16px
  }
}