:root {
  /* Palette */
  --bg-main: #000000;
  --bg-surface: #1f1f1f;
  --bg-card: #2a2a2a;

  --text-light: #f3f4f9;
  --text-dark: #0c0a05;
  --text-muted: rgba(243, 244, 249, 0.6);

  --gold: #bca56c;
  --gold-hover: #ccba8f;
  --blue: #6c83bc;
  --red: #db5856;
  --green: #4caf7d;

  /* Geometry */
  --rad-block: 3rem;
  --rad-card: 1.5rem;
  --rad-input: 1.2rem;

  /* Typography */
  --font-h: 'Unbounded', sans-serif;
  --font-p: 'Nunito Sans', sans-serif;
}

/* ── RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-p);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: var(--text-light);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--text-dark);
}

::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--gold-hover);
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
.btn,
.mark,
.step-number {
  font-family: var(--font-h);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  margin-bottom: 0.8rem;
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
}

.mark {
  color: var(--gold);
}

.req {
  color: var(--red);
  font-weight: bold;
}

.mark-gradient {
  background: linear-gradient(90deg, #7a5d37, #a0835b, #bca56c, #a0835b, #7a5d37);
  background-clip: text;
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textflow 4s ease-in-out infinite;
}

@keyframes textflow {
  0% {
    background-position: 0 center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0 center;
  }
}

/* ── LAYOUT ── */
.section-wrap {
  max-width: 90vw;
  margin: 0 auto;
  padding: 10vh 0;
}

.section-head {
  text-align: center;
  margin-bottom: 6vh;
}

.dark-card {
  background-color: var(--bg-surface);
  border-radius: var(--rad-block);
  padding: 4rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 6vh;
  min-height: 50px;
  padding: 0 2rem;
  border-radius: var(--rad-input);
  font-size: 1rem;
  transition: 0.3s ease-in-out;
  white-space: nowrap;
  /* FIX: Prevent text wrap */
}

.btn-gold {
  background-color: var(--gold);
  color: var(--text-dark);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: var(--blue);
  color: var(--text-light);
  transform: scale(1.05);
}

.btn-blue {
  background-color: var(--blue);
  color: var(--text-light);
  font-weight: 600;
}

.btn-blue:hover {
  background-color: var(--gold);
  color: var(--text-dark);
  transform: scale(1.05);
}

.btn-lg {
  height: 8vh;
  min-height: 60px;
  font-size: 1.1rem;
  padding: 0 3rem;
}

/* ── HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 10vh;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.header-inner {
  width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

#menu ul {
  display: flex;
  gap: 2rem;
}

#menu a {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
}

#menu a:hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 20001;
}

.hamburger div {
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: 0.3s;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.blob-1 {
  width: 40vw;
  height: 40vw;
  background: var(--red);
  top: 0;
  left: 0;
  animation: float 5s infinite alternate;
}

.blob-2 {
  width: 30vw;
  height: 30vw;
  background: var(--green);
  bottom: 0;
  right: 0;
  animation: float 6s infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(-5vw, -5vh) scale(1);
  }

  100% {
    transform: translate(5vw, 5vh) scale(1.2);
  }
}

.hero-subtitle {
  max-width: 600px;
  margin: 1.5rem auto 3rem;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── ADVANTAGES ── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.adv-card {
  background-color: var(--bg-surface);
  border-radius: var(--rad-block);
  padding: 3rem;
  transition: transform 0.3s ease;
}

.adv-card:hover {
  transform: scale(1.03);
  background-color: var(--bg-card);
}

.adv-icon {
  width: 60px;
  height: 60px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── BONUSES ── */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.bonus-card {
  background-color: var(--bg-main);
  border-radius: var(--rad-card);
  padding: 2.5rem;
  border: 1px solid var(--bg-card);
  transition: all 0.3s ease;
}

.bonus-icon-img {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.bonus-avito:hover {
  border-color: #97DF4F;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(151, 223, 79, 0.1);
}

.bonus-yandex:hover {
  border-color: #FFCC00;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
}

/* ── HOW IT WORKS ── */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  background-color: var(--bg-surface);
  border-radius: var(--rad-card);
  padding: 2.5rem;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: scale(1.05);
  background-color: var(--bg-card);
}

.step-number {
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: 0.3s;
}

.step-card:hover .step-number {
  color: var(--gold-hover);
  opacity: 1;
}

/* ── FORM ── */
.form-wrapper {
  max-width: 65vw;
  margin: 0 auto;
  padding: 4rem;
}

.form-head {
  text-align: center;
  margin-bottom: 3rem;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--bg-card);
  padding-bottom: 1rem;
}

.prog-step {
  font-family: var(--font-h);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: 0.3s;
}

.prog-step.active {
  color: var(--gold-hover);
}

.f-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.f-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
  width: 100%;
  height: 60px;
  padding: 0 1.5rem;
  border-radius: var(--rad-input);
  background-color: var(--text-light);
  color: var(--text-dark);
  font-family: var(--font-p);
  font-size: 1rem;
  border: none;
  outline: 4px solid transparent;
  transition: 0.3s;
}

input:focus {
  outline: 4px solid var(--blue);
}

input.error {
  outline: 4px solid var(--red);
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--text-muted);
  border-radius: var(--rad-input);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--blue);
  background: rgba(108, 131, 188, 0.1);
}

.dropzone.has-file {
  border-color: var(--gold);
  border-style: solid;
}

.dropzone span {
  display: block;
  font-family: var(--font-h);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.dropzone small {
  color: var(--gold);
}

.security-disclaimer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(76, 175, 125, 0.1);
  padding: 1.5rem;
  border-radius: var(--rad-input);
  margin-bottom: 2rem;
}

.security-disclaimer svg {
  width: 24px;
  color: var(--green);
  flex-shrink: 0;
}

.security-disclaimer p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.form-nav.right {
  justify-content: flex-end;
}

.form-nav .btn {
  flex: 1;
}

.form-global-error {
  color: var(--red);
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

.success-overlay {
  text-align: center;
  padding: 4rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

/* ── FAQ (max-height FIX) ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-item {
  background-color: var(--bg-card);
  border-radius: var(--rad-block);
  transition: background-color 0.3s;
  overflow: hidden;
}

.accordion-item:hover {
  background-color: var(--bg-surface);
}

.accordion-header {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s;
}

.accordion-header h3 {
  margin: 0;
}

.accordion-header::after {
  content: "+";
  font-family: var(--font-h);
  font-size: 2rem;
  transition: 0.3s;
  color: var(--text-muted);
}

.accordion-item.active .accordion-header {
  color: var(--gold);
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
  color: var(--red);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  padding: 0 3rem;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 40vh;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.accordion-item.active .accordion-content-inner {
  padding-bottom: 2rem;
}

/* ── ECOSYSTEM ── */
.ecosystem-card {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.eco-left {
  flex: 1;
}

.eco-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.eco-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.optiger-logo {
  max-width: 25vw;
}

/* ── FOOTER ── */
#footer {
  background-color: var(--bg-surface);
  border-top-left-radius: var(--rad-block);
  border-top-right-radius: var(--rad-block);
  padding: 5vh 0;
  margin-top: 10vh;
}

.footer-inner {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.footer-info {
  flex: 1;
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .section-wrap {
    max-width: 90vw;
  }

  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecosystem-card {
    flex-direction: column;
    text-align: center;
  }

  .eco-buttons {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --rad-block: 1.5rem;
    --rad-card: 1.2rem;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .blob-1 {
    width: 80vw;
    height: 80vw;
    top: -5vh;
    left: -20vw;
  }

  .blob-2 {
    width: 70vw;
    height: 70vw;
    bottom: 0;
    right: -10vw;
  }

  .section-wrap {
    padding: 5vh 0;
  }

  .dark-card,
  .form-wrapper {
    padding: 2rem 1.5rem;
    max-width: 90vw;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-nav {
    flex-direction: column-reverse;
  }

  .form-nav .btn {
    width: 100%;
  }

  .adv-grid,
  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .adv-card,
  .step-card,
  .bonus-card {
    padding: 2rem;
  }

  .accordion-header {
    padding: 1.5rem;
  }

  .accordion-content-inner {
    padding: 0 1.5rem;
  }

  .accordion-item.active .accordion-content-inner {
    padding-bottom: 1.5rem;
  }

  /* Mobile Menu */
  #menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
  }

  #menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
  }

  #menu ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  #menu a {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
    z-index: 20001;
  }

  .hamburger.active div {
    background: var(--red);
  }

  .hamburger.active div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header-btn {
    display: none;
  }

  .header-left {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .ecosystem-card {
    flex-direction: column-reverse;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .eco-left h2 {
    font-size: 1.5rem;
  }

  .eco-left p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .eco-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 0;
  }

  .eco-buttons .btn {
    width: 100%;
  }

  .optiger-logo {
    max-width: 50vw;
    margin: 0 auto;
  }

  .disclaimer {
    font-size: 0.65rem;
    line-height: 1.4;
    text-align: justify;
    opacity: 0.4;
  }

  .accordion-content {
    padding: 0 1.5rem;
  }

  .accordion-item.active .accordion-content {
    max-height: 50vh;
    padding-bottom: 1.5rem;
  }
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}