/* CSS Variables */
:root {
  /* Дополнительная цветовая схема */
  --primary-color: #FF6B35;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --dark-color: #2D3748;
  --light-color: #F7FAFC;
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-300: #E2E8F0;
  --gray-400: #CBD5E0;
  --gray-500: #A0AEC0;
  --gray-600: #718096;
  --gray-700: #4A5568;
  --gray-800: #2D3748;
  --gray-900: #1A202C;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  --gradient-accent: linear-gradient(135deg, #FFE66D 0%, #FFC107 100%);
  --gradient-dark: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  
  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-brutal: 8px 8px 0px var(--dark-color);
  
  /* Анимации */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Типографика */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Размеры */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --container-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  text-align: center;
}

.text-accent {
  color: var(--primary-color);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-brutal);
  transform: translateY(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 0px var(--dark-color);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 4px 4px 0px var(--dark-color);
}

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

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

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

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

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

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-color);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Header */
.navbar {
  background: rgba(45, 55, 72, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--primary-color);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-highlight {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(255, 107, 53, 0.1);
}

.navbar-toggler {
  border: 2px solid var(--primary-color);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.8) 0%, rgba(255, 107, 53, 0.3) 100%);
  z-index: 1;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: slideInUp 1s ease-out 0.4s both;
}

/* Services Section */
.service-card {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 12px 12px 0px var(--primary-color);
}

.service-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.service-card .card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .card-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card .card-text {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Statistics Section */
.stats-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-widget {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--white);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
}

.stat-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* History Section */
.bg-light {
  background: var(--gray-100) !important;
}

/* Methodology Section */
.methodology-step {
  padding: 2rem;
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  height: 100%;
}

.methodology-step:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px var(--secondary-color);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--dark-color);
}

.step-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-description {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Research Section */
.research-toggles {
  margin-top: 2rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input {
  width: 2.5rem;
  height: 1.5rem;
  border: 2px solid var(--dark-color);
}

.form-check-label {
  font-size: 1.125rem;
  color: var(--dark-color);
  margin-left: 0.5rem;
}

/* Resource Cards */
.resource-card {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 8px 8px 0px var(--accent-color);
}

.resource-card .card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Events Section */
.event-card {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 0px var(--secondary-color);
}

.event-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

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

.event-date {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.testimonial-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 8px 8px 0px var(--accent-color);
}

.testimonial-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.testimonial-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-stars {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  border-top: 2px solid var(--gray-200);
  padding-top: 1rem;
}

/* Blog Section */
.blog-card {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-brutal);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.blog-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 12px 12px 0px var(--primary-color);
}

.blog-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.blog-date {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-brutal);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 3px solid var(--dark-color);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer-section {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-text {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-600);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links a:hover {
  color: var(--white);
  border-color: var(--primary-color);
  background: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 2px solid var(--gray-600);
  padding-top: 2rem;
  margin-top: 2rem;
}

.copyright-text {
  color: var(--gray-400);
  margin: 0;
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  padding: 2rem 0;
}

.success-content {
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 3px solid var(--dark-color);
  box-shadow: var(--shadow-brutal);
  max-width: 500px;
  width: 100%;
}

.success-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Pages with Header Offset */
.page-content {
  padding-top: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .methodology-step {
    padding: 1.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .success-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer-section,
  .hero-section,
  .btn {
    display: none !important;
  }
  
  body {
    color: var(--black) !important;
    background: var(--white) !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #FF0000;
    --secondary-color: #00FF00;
    --dark-color: #000000;
    --white: #FFFFFF;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}