/* style.css - v4.0 Final Stable */

:root {
  --bg-color: #07070d;
  --bg-gradient:
    radial-gradient(
      ellipse 80% 40% at 50% 100%,
      rgba(100, 50, 200, 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(circle at 50% 0%, #0e0e1a 0%, #07070d 80%);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(120, 80, 220, 0.2);

  --primary: #7c3aed;
  --primary-light: #a855f7;
  --primary-glow: rgba(124, 58, 237, 0.4);
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --success: #22c55e;

  --text-main: #ffffff;
  --text-muted: #a0a0b8;
  --text-accent: #a855f7;

  --radius-lg: 24px;
  --radius-md: 16px;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --anim-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-color);
  /* background-image: var(--bg-gradient); */
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-grad {
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-glow {
  color: #7dd3fc;
  text-shadow:
    0 0 8px rgba(56, 120, 220, 0.9),
    0 0 20px rgba(37, 80, 180, 0.7),
    0 0 40px rgba(29, 60, 150, 0.5);
}

.glass-panel,
.role-card,
.bonus-card,
.res-card {
  background: #11111f;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(120, 80, 220, 0.2);
  border-radius: var(--radius-lg);
}
.direction-card {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-4px);
}

.direction-card:nth-child(1) {
  background-image: radial-gradient(
    circle,
    rgba(255, 107, 43, 0.2) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  background-color: transparent;
  border: 1px solid rgba(255, 107, 43, 0.25);
  box-shadow: 0 0 40px rgba(255, 107, 43, 0.08);
  position: relative;
  isolation: isolate;
}

.direction-card:nth-child(1)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 43, 0.12) 0%,
    rgba(200, 80, 20, 0.06) 40%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

.direction-card:nth-child(1):hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 43, 0.5);
  box-shadow:
    0 -8px 40px rgba(255, 107, 43, 0.4),
    0 8px 40px rgba(200, 80, 20, 0.3);
}

.direction-card:nth-child(1) h3 {
  background: linear-gradient(135deg, #ff6b2b, #ff9a3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.direction-card:nth-child(2) {
  background-image: radial-gradient(
    circle,
    rgba(255, 60, 172, 0.2) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  background-color: transparent;
  border: 1px solid rgba(255, 60, 172, 0.25);
  box-shadow: 0 0 40px rgba(255, 60, 172, 0.08);
  position: relative;
  isolation: isolate;
}
.direction-card:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 60, 172, 0.12) 0%,
    rgba(200, 20, 120, 0.06) 40%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Чтобы контент был поверх ::after */
.direction-card > * {
  position: relative;
  z-index: 1;
}

.direction-card:nth-child(2):hover {
  transform: translateY(-4px);
  border-color: rgba(255, 60, 172, 0.5);
  box-shadow:
    0 -8px 40px rgba(255, 60, 172, 0.4),
    0 8px 40px rgba(200, 20, 120, 0.3);
}

.direction-card:nth-child(2) h3 {
  background: linear-gradient(135deg, #ff3cac, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #7c3aed 30%,
    #ec4899 60%,
    transparent 100%
  );
  opacity: 0.6;
  border: none;
  margin: 0;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #cdd0e0;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 15px;
}

.check-list--orange li::before {
  color: #ff6b2b;
}

.check-list--pink li::before {
  color: #ff3cac;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 99px;
  height: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--anim-fast);
  border: none;
  text-decoration: none;
  gap: 8px;
}
.btn-header {
  background: #07070d;
  color: white;
  font-weight: 600;
  position: relative;
  border: none;
  isolation: isolate;
}
.btn-header::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: #07070d;
  z-index: -1;
}
.btn-header::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #3b82f6, #7c3aed, #ec4899);
  z-index: -5;
}
.btn-header:hover::before {
  background: linear-gradient(135deg, #60a5fa, #a855f7, #f472b6);
  filter: blur(2px);
}

.btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(120, 80, 220, 0.2);
}
.btn--ghost:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
}
.btn.w100 {
  width: 100%;
}

/* Header */
.header {
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* --- DROPDOWN --- */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 2000;
}

.lang-btn {
  min-width: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: white;
  border-radius: 99px;
  font-size: 14px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 140px;
  background: #0e0e1a;
  border: 1px solid rgba(120, 80, 220, 0.3);
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(124, 58, 237, 0.1);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 2001;
}

.lang-menu.show {
  display: flex;
}

.lang-item {
  padding: 10px 12px;
  font-size: 14px;
  color: #a0a0b8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
}
.lang-item:hover {
  background: rgba(124, 58, 237, 0.15);
  color: white;
}
.lang-item.active {
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.2);
  font-weight: 600;
}

/* Hero */
.hero {
  padding-top: 140px;
  padding-bottom: 30px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 40%,
    rgba(160, 80, 255, 0.18) 0%,
    rgba(120, 60, 220, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 24px;
}
.lead-text {
  font-size: 18px;
  color: var(--text-muted);
  width: 100%;

  margin-bottom: 40px;
}

/* Bonus Cards */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.bonus-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 110px;
  background: #11111f;
  border: 1px solid rgba(120, 80, 220, 0.2);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.bonus-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.45),
    0 0 30px rgba(124, 58, 237, 0.15);
}
.bonus-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--success);
}
.bonus-lbl {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Roles Grid */
.section-roles {
  padding: 0 0 60px 0;
  position: relative;
  z-index: 2;
}
.section-roles__bottom {
  text-align: center;
  color: var(--text-muted);
}

.py-20 {
  padding: 40px 0;
  position: relative;
}
.bottom-grad {
  position: relative;
  font-size: 12px;
  margin-top: -16px;
}
.bottom-grad::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 100, 255, 0.6) 30%,
    rgba(200, 150, 255, 0.9) 50%,
    rgba(160, 100, 255, 0.6) 70%,
    transparent 100%
  );
}

.py-20::before,
.py-20::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 100, 255, 0.6) 30%,
    rgba(200, 150, 255, 0.9) 50%,
    rgba(160, 100, 255, 0.6) 70%,
    transparent 100%
  );
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.roles-grid__bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.role-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(160, 100, 255, 0.25);
  position: relative;
  isolation: isolate;
  transition: transform 0.3s;

  background-image: radial-gradient(
    circle,
    rgba(160, 100, 255, 0.2) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  background-color: transparent;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(160, 80, 255, 0.12) 0%,
    rgba(120, 60, 220, 0.06) 40%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

.role-card > * {
  position: relative;
  z-index: 1;
}
.d-flex {
  display: flex;
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 120, 255, 0.5);
  box-shadow:
    0 -8px 40px rgba(180, 120, 255, 0.4),
    0 8px 40px rgba(140, 60, 255, 0.3);
}
.role-card img {
  width: 80px;
  margin-bottom: 20px;
}
.role-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: white;
  font-weight: 700;
}
.role-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  padding: 20px;
}
.modal__panel {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: #0e0e1a;
  border: 1px solid rgba(120, 80, 220, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15);
}
.modal.is-open .modal__panel {
  transform: translateY(0);
}

/* Quiz Styles */
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 20px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  width: 0%;
  transition: width 0.3s ease;
}
.quiz-option {
  display: block;
  cursor: pointer;
  margin-bottom: 10px;
}
.quiz-option input {
  display: none;
}
.quiz-option__inner {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(120, 80, 220, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.quiz-option input:checked + .quiz-option__inner {
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.15);
}
.quiz-option:hover .quiz-option__inner {
  border-color: rgba(168, 85, 247, 0.4);
}

/* Thanks Page Resources */
.thanks-wrap {
  text-align: center;
  padding: 60px 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.res-card {
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  background: #11111f;
  border: 1px solid rgba(120, 80, 220, 0.2);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.res-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.45),
    0 0 24px rgba(124, 58, 237, 0.15);
}
.res-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}
.res-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: white;
  min-height: 54px;
  display: flex;
  align-items: center;
}
.res-card p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-grow: 1;
}

/* --- FIX INPUTS & SELECTS --- */
input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: rgba(124, 58, 237, 0.07) !important;
  border: 1px solid rgba(120, 80, 220, 0.25) !important;
  border-radius: 12px;
  color: #ffffff !important;
  font-family: var(--font-main);
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  border-color: var(--primary-light) !important;
  background: rgba(124, 58, 237, 0.12) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

select option {
  background-color: #0e0e1a;
  color: white;
  padding: 10px;
}

select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  width: fit-content;
}

.status-badge__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;

  background: radial-gradient(
    circle at 40% 35%,
    #ffffff 0%,
    #4ade80 40%,
    #16a34a 100%
  );
  box-shadow:
    0 0 6px 2px rgba(74, 222, 128, 0.9),
    0 0 16px 4px rgba(34, 197, 94, 0.7),
    0 0 30px 6px rgba(34, 197, 94, 0.4);

  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow:
      0 0 6px 2px rgba(74, 222, 128, 0.9),
      0 0 16px 4px rgba(34, 197, 94, 0.7),
      0 0 30px 6px rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 8px 3px rgba(74, 222, 128, 1),
      0 0 24px 8px rgba(34, 197, 94, 0.9),
      0 0 50px 12px rgba(34, 197, 94, 0.5);
    transform: scale(1.15);
  }
}

.hero__visual {
  width: 100%;
}

.hero__visual img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.action_btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: auto;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding-top: 80px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
  .bonus-grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .invisible {
    display: none;
  }

  .roles-grid__bottom {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  @media (max-width: 500px) {
    .hero__grid {
      gap: 20px;
    }
    .hero__visual {
      width: 100%;
    }
    .action_btns {
      flex-direction: column;
    }
  }
}
