:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --container: 1200px;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Utilities */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-light);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--text-muted);
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
}

.btn-white:hover {
  background: #f1f5f9;
}

.link-styled {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.link-styled:hover {
  border-bottom-color: var(--secondary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-nav {
  display: flex;
  gap: 25px;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 16px;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger Menu */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-btn span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: 0.4s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-links a {
  font-size: 24px;
  font-weight: 700;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 50%
  );
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-subtitle {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-visual {
  position: relative;
}

.hero-img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.abstract-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 20px;
  z-index: 1;
}

/* General Section Styles */
.section {
  padding: 100px 0;
}

.sec-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* About Section */
.content-block h2 {
  margin-bottom: 30px;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 30px;
  font-size: 24px;
}

.image-block {
  position: relative;
}

.image-block img {
  border-radius: 20px;
  width: 100%;
}

.stat-card {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--bg-card);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.feature-card i {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 25px;
}

/* Process Section */
.sec-dark {
  background: #0b1120;
}

/* Quiz Promo */
.sec-gradient {
  background: var(--gradient);
  color: white;
}

.sec-gradient h2 {
  color: white;
  font-size: 3rem;
}

.sec-gradient p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Benefits Section */
.benefits-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefit-item {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 20px;
  align-items: flex-start;
}

.b-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats Section */
.sec-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-box .counter {
  display: block;
  font-size: 3.5rem;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
}

/* Final CTA */
.final-card {
  background: var(--bg-card);
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 1px solid var(--border);
}

.fc-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fc-image img {
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content p {
  padding-bottom: 20px;
  padding-right: 40px;
}

.faq-item.active .faq-btn i {
  transform: rotate(180deg);
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-list {
  margin-top: 40px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.contact-list i {
  color: var(--primary);
}

.form-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.captcha-group input {
  width: 100px;
  display: inline-block;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-wrapper input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.checkbox-wrapper label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-wrapper a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* Footer */
.footer {
  background: #050a15;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: white;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-col p {
  font-size: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 14px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: var(--bg-card);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.btn-cookie {
  background: white;
  color: var(--bg-dark);
  border: none;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  align-self: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .grid-2,
  .features-grid,
  .final-card,
  .contact-wrapper,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .image-block,
  .hero-visual {
    order: -1;
  }

  .reverse-mob .image-block {
    order: -1;
  }

  .stat-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    width: 80%;
  }

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

@media (max-width: 768px) {
  .desktop-nav,
  .header-actions .btn-primary {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .stat-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 40px;
  margin-top: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px !important;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
