:root {
  /* Основные цвета */
  --primary-color: #4a6fd6;
  --primary-dark: #3b5bba;
  --primary-light: #6487e9;
  --secondary-color: #ff6b4a;
  --secondary-dark: #e05439;
  --secondary-light: #ff8a72;
  
  /* Нейтральные цвета */
  --light: #f8f9fd;
  --light-gray: #e6e9f0;
  --medium-gray: #c4c9d4;
  --dark-gray: #5e6577;
  --dark: #2d3142;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-dark: linear-gradient(135deg, var(--dark), #414763);
  --gradient-light: linear-gradient(135deg, var(--light), var(--light-gray));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  
  /* Тени */
  --shadow-soft: 8px 8px 24px rgba(163, 177, 198, 0.2), -8px -8px 24px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 4px 4px 8px rgba(163, 177, 198, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  --shadow-hover: 12px 12px 32px rgba(163, 177, 198, 0.3), -12px -12px 32px rgba(255, 255, 255, 0.9);
  
  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры и отступы */
  --container-padding: 5%;
  --section-spacing: 80px;
  --card-spacing: 24px;
  --header-height: 80px;
}

/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0.8rem auto 0;
  border-radius: var(--radius-sm);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Кнопки */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before, 
button::before, 
input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-medium);
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn:hover::before, 
button:hover::before, 
input[type="submit"]:hover::before {
  opacity: 0.2;
}

.btn:active, 
button:active, 
input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

.btn-primary {
  background: var(--gradient-primary);
}

.btn-secondary {
  background: var(--gradient-secondary);
}

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

.btn-outlined:hover {
  background: var(--primary-color);
  color: white;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-medium);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  z-index: 1001;
}

.logo a {
  color: var(--dark);
  text-decoration: none;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav li {
  margin-left: 2rem;
}

.desktop-nav a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  transition: all var(--transition-medium);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right var(--transition-medium);
  z-index: 1000;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin-bottom: 2rem;
}

.mobile-nav a {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 500;
}

.mobile-nav.active {
  right: 0;
}

.mobile-menu-toggle.active span:first-child {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-content .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  color: #FFFFFF;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  color: #FFFFFF;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--card-spacing);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
  text-align: center;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Process Section */
.process {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: var(--shadow-soft);
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Success Stories Section */
.success-stories {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Recursos Externos Section */
.recursos-externos {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* News Section */
.news {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.date {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: auto;
}

/* Insights Section */
.insights {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Media Section */
.media {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.media-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.media-item {
  display: flex;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium);
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.media-logo {
  width: 30%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
}

.media-logo img {
  max-width: 100%;
  height: auto;
}

.media-quote {
  width: 70%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-quote p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.source {
  font-weight: 700;
  color: var(--primary-color);
}

/* Careers Section */
.careers {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Contact Section */
.contact {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.map {
  grid-column: span 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 300px;
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 214, 0.2);
  outline: none;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  margin-top: 0.8rem;
  border-radius: var(--radius-sm);
}

.footer p {
  color: var(--medium-gray);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin: 0;
  color: white;
}

.cookie-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 1rem;
  font-weight: 500;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: pulse 2s infinite;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 111, 214, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(74, 111, 214, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 111, 214, 0);
  }
}

/* Privacy & Terms pages */
.page-content {
  padding: 100px 0 60px;
}

.page-content .container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.page-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.page-content h2 {
  text-align: left;
  margin-top: 2rem;
}

.page-content h2::after {
  margin-left: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  :root {
    --section-spacing: 60px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .media-item {
    flex-direction: column;
  }
  
  .media-logo, .media-quote {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 50px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .map {
    grid-column: span 1;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 4%;
    --section-spacing: 40px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-btn {
    margin-left: 0;
  }
}