*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #d4a843;
  --gold-hover: #e6bc5a;
  --dark: #0a0a0a;
  --dark-card: rgba(20, 20, 20, 0.75);
  --dark-card-hover: rgba(30, 30, 30, 0.85);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(212, 168, 67, 0.4);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Background ── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(10, 8, 5, 0.78) 100%),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&q=80") center/cover no-repeat;
  z-index: -1;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-phone {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  max-width: 900px;
}

.hero-badge {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.hero-footer {
  position: absolute;
  bottom: 30px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  color: var(--text-muted);
  gap: 20px;
}

.hero-privacy {
  max-width: 380px;
  text-align: right;
  line-height: 1.5;
}

/* ── Services Section ── */
.services {
  padding: 80px 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.section-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 48px;
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
  border-color: var(--border);
  background: var(--dark-card-hover);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── About Section ── */
.about {
  padding: 80px 40px;
  max-width: 900px;
}

.about-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  margin-top: 24px;
}

.about-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}

.about-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── CTA Section ── */
.cta-section {
  padding: 60px 40px 100px;
  text-align: center;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 16px;
}

/* ── Footer ── */
.site-footer {
  padding: 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Quiz Overlay ── */
.quiz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(10, 8, 5, 0.85) 100%),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&q=80") center/cover no-repeat;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 100px;
}

.quiz-overlay.active {
  display: flex;
}

.quiz-question {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  width: 100%;
}

@media (max-width: 600px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  color: var(--text);
  text-align: left;
}

.quiz-option:hover {
  background: var(--dark-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.quiz-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.quiz-option.selected .quiz-option-radio {
  border-color: var(--gold);
}

.quiz-option.selected .quiz-option-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.quiz-input-wrap {
  max-width: 560px;
  width: 100%;
}

.quiz-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 24px;
  font-size: 18px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font);
}

.quiz-input:focus {
  border-color: var(--gold);
}

.quiz-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.quiz-privacy-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Quiz Navigation ── */
.quiz-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.quiz-progress-wrap {
  flex: 1;
  max-width: 500px;
}

.quiz-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quiz-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-next {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-next.gold {
  background: var(--gold);
  color: #000;
}

.btn-next.gold:hover {
  background: var(--gold-hover);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-enter-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* ── Success Page ── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.15);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 32px;
}

.success-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.success-text {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── Loading ── */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-next.loading .loading-spinner {
  display: inline-block;
}

.btn-next.loading .btn-text {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .hero {
    padding: 100px 20px 120px;
  }

  .hero-footer {
    position: static;
    flex-direction: column;
    margin-top: 40px;
    text-align: left;
  }

  .hero-privacy {
    text-align: left;
  }

  .services,
  .about,
  .cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quiz-nav {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .quiz-nav-buttons {
    justify-content: flex-end;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
