:root {
  /* Основная цветовая схема (раздельно-дополнительная) */
  --primary-color: #3a7bd5;
  --primary-dark: #2c5ea6;
  --primary-light: #6398e5;
  --secondary-color: #e67e22;
  --secondary-dark: #c76a1d;
  --secondary-light: #f39c12;
  --accent-color: #8e44ad;
  --accent-dark: #732d91;
  --accent-light: #a569bd;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --black: #212529;
  
  /* Эко-минимализм цвета */
  --eco-green: #48ad69;
  --eco-blue: #4fa8d4;
  --eco-brown: #a67c52;
  
  /* Тени и прозрачность для гласморфизма */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  
  /* Радиусы и размеры */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --header-height: 80px;
  --section-padding: 80px 0;
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

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

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

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

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Гласморфизм эффекты */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Карточки с эффектом гласморфизма */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

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

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

.card-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

/* Кнопки */
.btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.4s ease;
  z-index: -1;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* Форма */
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--medium-gray);
  font-family: 'Merriweather', serif;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 123, 213, 0.25);
}

.form-check-input {
  cursor: pointer;
}

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

/* Header/Navbar */
.header-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: var(--header-height);
  z-index: 1000;
}

.header-section.scrolled {
  height: 65px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 0;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

.header-section.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

.nav-link {
  color: var(--dark-gray);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background-image: url('../image/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
}

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

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.registration-form {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: var(--dark-gray);
}

.registration-form h3 {
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
  background-color: var(--white);
}

.feature-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-toggle {
  margin-top: auto;
}

.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
}

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

/* Case Studies Section */
.case-studies-section {
  background-color: var(--light-gray);
}

.case-study-card {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Resources Section */
.resources-section {
  background-color: var(--white);
}

.resource-card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Research Section */
.research-section {
  background-color: var(--white);
}

.research-card {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.badge {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 30px;
}

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

.gallery-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-card .card-image {
  position: relative;
  overflow: hidden;
}

.gallery-card img {
  transition: transform 0.5s ease;
}

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

.gallery-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.gallery-card .overlay h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.gallery-card .overlay p {
  color: var(--white);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Accolades Section */
.accolades-section {
  background-color: var(--white);
}

.accolade-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accolade-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.accolade-card img {
  max-height: 120px;
  object-fit: contain;
  margin: 2rem auto;
}

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

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.3s ease;
  margin-right: 1rem;
}

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

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

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

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

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-section .social-links {
  display: flex;
  gap: 1.5rem;
}

.footer-section .social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-section .social-links a:hover {
  color: var(--white);
}

.newsletter-form .input-group {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.newsletter-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
}

.newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--light-gray);
  text-align: center;
}

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

.success-icon {
  font-size: 5rem;
  color: var(--eco-green);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 50px;
}

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

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: var(--white);
  z-index: 9999;
  display: none;
}

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

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

@media (max-width: 767.98px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
  }
}

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

/* Медиа-запросы */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .registration-form {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-section {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-section h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .registration-form {
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

/* Анимации при прокрутке */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Микроинтеракции */
.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* Ссылки "Читать далее" */
.read-more-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: transform 0.3s ease, color 0.3s ease;
}

.read-more-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.read-more-link:hover::after {
  transform: translateX(3px);
}

@media (max-width:768px){
    .navbar-collapse {
      background: #fff;
    }
}