:root {
  /* Цветовая схема "Аналоговая" */
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary: #26a69a;
  --secondary-dark: #00897b;
  --secondary-light: #80cbc4;
  --accent: #7e57c2;
  --accent-dark: #5e35b1;
  --accent-light: #b39ddb;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-medium: #f3f3f3;
  --background-dark: #e0e0e0;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --border-radius: 8px;
  --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --padding-section: 5rem 0;
}

/* Base Styles */
body {
  font-family: 'Work Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--background-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

section {
  padding: var(--padding-section);
  position: relative;
}

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

.bg-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.bg-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.bg-accent {
  background-color: var(--accent);
  color: var(--text-light);
}

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

.text-secondary {
  color: var(--secondary) !important;
}

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

/* Глобальные стили для кнопок */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

html {
  overflow-x: hidden;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* "Читать далее" ссылки */
.btn-sm.btn-outline-primary {
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
  transition: var(--transition);
}

.btn-sm.btn-outline-primary:hover {
  transform: translateX(5px);
}

/* Эффекты для всех ссылок */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Header styles */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  padding: 0.5rem 0;
  z-index: 1000;
}

.header.scrolled {
  padding: 0.25rem 0;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

.nav-link:hover::after {
  width: 70%;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 0 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
}

.hero h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.min-vh-80 {
  min-height: 80vh;
}

/* Blog Section */
.blog .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.blog .card-image {
  overflow: hidden;
  position: relative;
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.blog .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.blog .card:hover h3 {
  color: var(--primary);
}

/* Research Section */
.research img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.research img:hover {
  transform: scale(1.02);
}

.research h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Behind the Scenes */
.behind-scenes .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.behind-scenes .card-image {
  overflow: hidden;
  position: relative;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.behind-scenes .card-img-top {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.behind-scenes .card:hover .card-img-top {
  transform: scale(1.05);
}

.behind-scenes .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Resources Section */
.resources .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.resources .card-image {
  overflow: hidden;
  position: relative;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resources .card-img-top {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.resources .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resources h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* External Resources */
.external-resources .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.external-resources .card-image {
  overflow: hidden;
  position: relative;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.external-resources .card-img-top {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.external-resources .card:hover .card-img-top {
  transform: scale(1.05);
}

.external-resources .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.external-resources ul li a {
  display: inline-block;
  transition: var(--transition);
  color: var(--primary);
}

.external-resources ul li a:hover {
  transform: translateX(5px);
  color: var(--primary-dark);
}

/* Customer Stories */
.customer-stories .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.customer-stories .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.customer-stories .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.customer-stories .rounded-circle {
  border: 3px solid var(--primary-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  object-fit: cover;
}

.customer-stories .card:hover .rounded-circle {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* News Section */
.news .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.news .card-image {
  overflow: hidden;
  position: relative;
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news .card-img-top {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.news .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news .text-muted {
  font-size: 0.85rem;
}

/* Contact Section */
.contact .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.contact .card-image {
  overflow: hidden;
  position: relative;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .card-img-top {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact form .form-control {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--background-dark);
  transition: var(--transition);
}

.contact form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.15);
}

.contact form .form-label {
  font-weight: 500;
  color: var(--text-medium);
}

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

/* Footer */
.footer {
  background-color: #333;
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--text-light);
  text-decoration: none;
  transform: translateX(5px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Cookie Consent */
.cookie-consent {
  font-family: 'Work Sans', sans-serif;
  padding: 1.25rem 2rem;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.cookie-consent p {
  margin-bottom: 1rem;
}

.cookie-consent button {
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

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

.success-page .card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
  width: 100%;
}

.success-page .card-body {
  padding: 3rem;
}

.success-page h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.success-page .check-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.privacy-page h1, .terms-page h1 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.privacy-page h2, .terms-page h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.privacy-page p, .terms-page p {
  margin-bottom: 1.5rem;
}

/* Искривленные сетки */
.grid-skewed {
  position: relative;
  z-index: 1;
}

.grid-skewed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-light);
  transform: skewY(-5deg);
  transform-origin: top left;
  z-index: -1;
}

/* Параллакс эффект */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Микроанимации */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
    max-width: 90%;
  }
  
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
    max-width: 100%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .research .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  .contact .card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}