:root {
  --color-primary: #7c3aed; /* Vibrant Purple */
  --color-primary-dark: #6d28d9;
  --color-secondary: #ec4899; /* Bright Pink */
  --color-bg-main: #fafafa;
  --color-bg-card: #ffffff;
  --color-bg-soft: #f3f4f6;
  --color-text-dark: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --font-main:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

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

/* Typography */
h1,
h2,
h3 {
  color: var(--color-text-dark);
  line-height: 1.2;
  font-weight: 800;
}

h4 {
  color: var(--color-border);
  line-height: 1.3;
  font-weight: 700;
}

.section {
  padding: 100px 0;
}

.bg-soft {
  background-color: var(--color-bg-soft);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.section-paragraph {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

.section-header {
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.anim-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
    transform-origin: center;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
    transform-origin: center;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    transform-origin: center;
  }
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text-dark);
}

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

.nav-highlight {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 50px;
}

.nav-highlight:hover {
  background: var(--color-primary);
  color: #fff;
}

.mobile-nav-header,
.btn-burger,
.btn-close {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

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

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  bottom: -50px;
  left: -100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  box-shadow: var(--shadow-lg);
}

.floating-badge {
  position: absolute;
  background: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.floating-badge i {
  color: var(--color-secondary);
}

.badge-top {
  top: -20px;
  right: -20px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* About */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-visual img {
  box-shadow: -20px 20px 0px rgba(124, 58, 237, 0.1);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
}

/* Income */
.income-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.income-visual {
  position: relative;
}

.stat-card {
  position: absolute;
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.stat-card i {
  background: var(--color-bg-soft);
  padding: 10px;
  border-radius: 50%;
  color: var(--color-primary);
}

.stat-info strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.stat-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.stat-1 {
  top: 10%;
  left: -30px;
}
.stat-2 {
  bottom: 10%;
  right: -30px;
}

/* Region */
.region-box {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 24px;
  padding: 60px;
  color: #fff;
  text-align: center;
}

.region-content {
  max-width: 800px;
  margin: 0 auto;
}

.region-content .section-title {
  color: #fff;
}

.region-content .section-paragraph {
  color: rgba(255, 255, 255, 0.9);
}

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

.step-item {
  background: var(--color-bg-card);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-trigger:hover {
  background: var(--color-bg-soft);
}

.faq-trigger i {
  color: var(--color-secondary);
  transition: transform 0.4s ease;
}

.faq-card.active .faq-trigger i {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 30px;
}

.faq-card.active .faq-panel {
  padding-bottom: 24px;
}

.faq-panel p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.faq-panel p:last-child {
  margin-bottom: 0;
}

/* Contact Form - Strict Column & Max Width */
.contact-form-container {
  display: flex;
  flex-direction: column;
  max-width: 500px; /* Фиксация максимальной ширины */
  margin: 0 auto;
  background: var(--color-bg-card);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.column-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

.input-with-icon input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--color-bg-soft);
  transition: all var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.captcha-container {
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 5px;
}

.checkbox-field input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.no-wrap-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.no-wrap-label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 18px;
  border-radius: 12px;
}

/* Footer */
.footer {
  background: #111827;
  color: #fff;
  padding: 80px 0 30px;
}

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

.footer-brand .brand {
  color: #fff;
  margin-bottom: 20px;
}

.footer-about {
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-links-group h4,
.footer-contacts h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links-group ul li,
.contact-list li {
  margin-bottom: 12px;
}

.footer-links-group a {
  color: #9ca3af;
  font-size: 0.95rem;
}

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

.highlight-contact {
  color: var(--color-secondary) !important;
  font-weight: 700;
  text-decoration: underline;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.contact-list i {
  color: var(--color-secondary);
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 20px 0;
  transition: bottom 0.5s ease;
  border-top: 3px solid var(--color-primary);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  padding: 12px;
  border-radius: 50%;
  display: flex;
}

.cookie-content h4 {
  margin-bottom: 4px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

#btn-accept-cookie {
  white-space: nowrap;
}

/* Media Queries */

/* Фикс хедера: Если места не хватает, сворачиваем в бургер чуть раньше (на 850px) */
@media (max-width: 850px) {
  .btn-burger {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    flex-direction: column;
    padding: 30px;
    transition: right var(--transition);
    overflow-y: auto;
  }

  .navbar.active {
    right: 0;
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-brand {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--color-primary);
  }

  .btn-close {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
  }

  .nav-list {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    align-items: flex-start;
  }

  .nav-link {
    font-size: 1.2rem;
  }
  .nav-highlight {
    background: none;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-container,
  .about-container,
  .income-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image,
  .about-visual,
  .income-visual {
    order: -1;
  }
  .stat-1 {
    top: -20px;
    left: 10px;
  }
  .stat-2 {
    bottom: -20px;
    right: 10px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }
  /* Отменяем nowrap для мобилок, чтобы текст поместился */
  .no-wrap-label {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .hero {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }

  .region-box {
    padding: 40px 20px;
  }

  .contact-form-container {
    padding: 30px 20px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand .brand,
  .contact-list li {
    justify-content: center;
  }

  .cookie-container {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
  #btn-accept-cookie {
    width: 100%;
  }
}

.pages {
  padding: 120px 0;
}

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

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 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(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    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;
  }
}
