:root {
  /* Основные цвета */
  --primary-color: #6a11cb;
  --primary-dark: #4a0d91;
  --primary-light: #8843e9;
  --secondary-color: #2575fc;
  --secondary-dark: #1a5cc7;
  --secondary-light: #5a9bff;
  
  /* Монохромная схема */
  --dark-color: #1e1a2b;
  --dark-gray: #2d2a3a;
  --medium-gray: #4a4658;
  --light-gray: #716f7a;
  --lighter-gray: #a8a7ad;
  --almost-white: #f0f0f4;
  
  /* Акцентные цвета */
  --accent-color: #ff7e5f;
  --accent-dark: #e65a40;
  --accent-light: #ffb199;
  
  /* Утилитарные цвета */
  --text-color: #333340;
  --text-light: #666672;
  --text-dark: #1a1a24;
  --background-color: #f8f8fc;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  /* Градиенты */
  --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --dark-gradient: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-gray) 100%);
  --light-gradient: linear-gradient(135deg, var(--almost-white) 0%, var(--lighter-gray) 100%);
  --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
  
  /* Тени */
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
  --inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  
  /* Размеры */
  --container-width: 1200px;
  --container-padding: 24px;
  --section-spacing: 80px;
  --element-spacing: 24px;
  
  /* Радиусы */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --border-radius-rounded: 50%;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8em;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-color);
}

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

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

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

ul {
  list-style: none;
}

/* ===== Контейнеры и секции ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: 60px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  font-weight: 800;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 16px auto 0;
  border-radius: var(--border-radius-sm);
}

/* ===== Гласморфизм ===== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ===== Кнопки ===== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
  transform: translateY(-2px);
}

.btn-secondary,
button.btn-secondary,
input[type="submit"].btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== Хедер и навигация ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
}

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

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

.desktop-menu ul {
  display: flex;
  gap: 24px;
}

.desktop-menu a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.desktop-menu a:hover {
  color: var(--primary-color);
}

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

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-color);
  transition: all var(--transition-normal);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.mobile-menu a {
  color: var(--dark-color);
  font-weight: 500;
  display: block;
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  padding: 0;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--background-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

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

.about-text h3 {
  color: var(--primary-color);
  margin-top: 24px;
}

.about-text p {
  margin-bottom: 20px;
}

/* ===== Services Section ===== */
.services-section {
  background-color: var(--background-color);
}

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

.card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ===== Team Section ===== */
.team-section {
  background-color: var(--almost-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-grid .card {
  text-align: center;
}

.team-grid .card-image {
  height: 300px;
  width: 300px;
  border-radius: var(--border-radius-rounded);
  overflow: hidden;
  margin: 0 auto 20px;
}

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

.team-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

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

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

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resources-list a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-normal);
}

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

/* ===== Gallery Section ===== */
.gallery-section {
  background-color: var(--almost-white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.gallery-caption {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  text-align: center;
  font-weight: 500;
  width: 100%;
}

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

.accolades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.accolade-item {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accolade-item .image-container {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.accolade-item h3 {
  color: var(--primary-color);
  margin: 15px 0;
}

/* ===== News Section ===== */
.news-section {
  background-color: var(--almost-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-date {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 20px;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-info {
  padding: 30px;
  background: var(--light-gradient);
  border-radius: var(--border-radius-md);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-media {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-normal);
}

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

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
}

.contact-form h3 {
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--lighter-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* ===== Footer Section ===== */
.footer-section {
  background-color: var(--dark-color);
  color: white;
  padding: 70px 0 20px;
}

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

.footer-logo h2 {
  color: white;
  margin-bottom: 15px;
}

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

.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-newsletter h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-newsletter p {
  color: var(--lighter-gray);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter-form button {
  align-self: flex-start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--dark-gray);
}

.footer-bottom p {
  color: var(--lighter-gray);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--lighter-gray);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: white;
  text-decoration: underline;
}

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

.success-content {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.success-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.success-message {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.success-actions {
  margin-top: 30px;
}

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

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
}

.privacy-content h2,
.terms-content h2 {
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.privacy-content h3,
.terms-content h3 {
  color: var(--dark-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.privacy-content p,
.terms-content p {
  margin-bottom: 20px;
}

.privacy-content ul,
.terms-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}

/* ===== Медиа запросы ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .services-grid,
  .team-grid,
  .resources-grid,
  .gallery-grid,
  .accolades-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.slide-in {
  opacity: 0;
  animation: slideInRight 1s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }