/* Base Styles */
:root {
  /* Цветовая палитра */
  --color-primary-dark: #6B0F1A;
  --color-primary: #B91372;
  --color-accent-yellow: #FEE440;
  --color-accent-blue: #00BBF9;
  --color-text-dark: #222222;
  --color-text-light: #FFFFFF;
  --color-button: #9B5DE5;
  --color-button-hover: #F15BB5;
  --color-bg-light: #F8F9FA;
  --color-bg-dark: #343A40;
  --color-border: rgba(255, 255, 255, 0.2);
  --color-shadow: rgba(0, 0, 0, 0.2);
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 2rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent-blue);
}

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

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-accent-yellow);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-sm) 0;
}

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

.logo-container {
  max-width: 180px;
}

.header-logo {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-nav {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-list a {
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background-color: rgba(155, 93, 229, 0.1);
}

.nav-cta {
  background-color: var(--color-button);
  color: var(--color-text-light) !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 6px rgba(155, 93, 229, 0.2);
}

.nav-cta:hover {
  background-color: var(--color-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(241, 91, 181, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(254, 228, 64, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 2em;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-button);
  color: var(--color-text-light);
  box-shadow: 0 4px 6px rgba(155, 93, 229, 0.2);
}

.btn-primary:hover {
  background: var(--color-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(241, 91, 181, 0.3);
  color: var(--color-text-light);
}

.btn-secondary {
  background: transparent;
  color: var(--color-button);
  border: 2px solid var(--color-button);
}

.btn-secondary:hover {
  background: rgba(155, 93, 229, 0.1);
  color: var(--color-button-hover);
  border-color: var(--color-button-hover);
  transform: translateY(-2px);
}

/* Benefits Section */
.benefits {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.benefit-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-text-light);
  font-size: 2rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.05), rgba(185, 19, 114, 0.05));
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-text-light);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-content {
  order: 1;
}

.about-content h2, .about-content p {
  color: var(--color-text-light);
}

.about-image {
  order: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.service-card h3, .service-card p, .service-card .price {
  padding: 0 var(--spacing-md);
}

.service-card h3 {
  margin-top: var(--spacing-md);
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: var(--spacing-sm) 0 var(--spacing-md);
}

.service-card .btn {
  margin: auto var(--spacing-md) var(--spacing-md);
  align-self: flex-start;
}

/* Infographic Section */
.infographic {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
}

.infographic h2 {
  color: var(--color-text-light);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto var(--spacing-md);
}

.process-step h3 {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* Testimonials Section */
.testimonials {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  position: relative;
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--color-accent-yellow);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.testimonial-author p {
  margin: 0;
  opacity: 0.7;
}

/* Order Form Section */
.order {
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.05), rgba(185, 19, 114, 0.05));
  padding: var(--spacing-xl) 0;
}

.order-form {
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 187, 249, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-group input {
  width: auto;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
}

/* FAQ Section */
.faq {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.faq-item {
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.02), rgba(185, 19, 114, 0.02));
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* Footer */
.main-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--color-text-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent-yellow);
}

.contact-list,
.legal-links {
  list-style: none;
  padding: 0;
}

.contact-list li,
.legal-links li {
  margin-bottom: var(--spacing-sm);
}

.legal-links a {
  color: var(--color-text-light);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
  color: var(--color-accent-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(52, 58, 64, 0.95);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: var(--spacing-md);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  width: 100%;
  color: var(--color-text-light);
}

.cookie-content p {
  margin: 0 var(--spacing-md) 0 0;
}

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

.cookie-btn {
  white-space: nowrap;
}

/* Thank You Page */
.thank-you {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-text-light);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.thank-you-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.thank-you h1 {
  color: var(--color-text-light);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.success-message {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--color-accent-yellow);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: var(--color-accent-yellow);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.actions {
  margin-top: var(--spacing-lg);
}

/* Legal Pages */
.legal-page {
  background-color: white;
  padding: var(--spacing-xl) 0;
}

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

.legal-content article {
  margin-bottom: var(--spacing-xl);
}

.legal-page h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  text-align: left;
}

.legal-content h2::after {
  left: 0;
  transform: none;
  width: 60px;
}

.legal-content ul, 
.legal-content ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-content ul li, 
.legal-content ol li {
  margin-bottom: var(--spacing-xs);
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-navigation {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card, .service-card, .testimonial-card, .process-step, .faq-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* Адаптивность */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container, .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content, .about-content {
    order: 1;
  }
  
  .hero-image, .about-image {
    order: 2;
    margin-top: var(--spacing-lg);
    transform: perspective(1000px) rotateY(0);
  }
  
  .about-image {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  
  .menu-toggle:checked ~ .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin: 0 0 var(--spacing-md) 0;
  }
}

/* Alert */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
}
