:root {
  /* Основные цвета */
  --primary-color: #0075ff;
  --primary-dark: #0050cc;
  --secondary-color: #00c9a7;
  --secondary-dark: #00a085;
  --accent-color: #ff6b6b;
  --accent-dark: #ff4545;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --dark-medium: #333333;
  --medium: #666666;
  --light-medium: #999999;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  --gradient-light: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  --overlay-dark: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  --overlay-light: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Параметры макета */
  --container-width: 1200px;
  --header-height: 80px;
  --section-spacing: 100px;
  --element-spacing: 30px;
}

/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

p {
  margin-bottom: 1.5rem;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Секционные стили */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--medium);
  font-size: 1.1rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

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

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

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

button, 
input[type='submit'] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

/* Анимация частиц */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) translateX(20px);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: float 3s infinite ease-in-out;
}

.particle:nth-child(2n) {
  background: var(--secondary-color);
  animation-duration: 4s;
}

.particle:nth-child(3n) {
  background: var(--accent-color);
  animation-duration: 5s;
}

/* Карточки */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.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: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-content p {
  color: var(--medium);
  margin-bottom: 20px;
}

/* Заголовки */
.heading-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

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

.desktop-nav ul li {
  margin-left: 30px;
}

.desktop-nav ul li a {
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

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

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
  width: 100%;
}

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

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

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 999;
}

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

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

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: block;
  padding: 8px 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 40px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.progress-indicator {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

.progress-indicator .line {
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.progress-indicator .line.active {
  background: var(--white);
  width: 50px;
}

/* About Section */
.about-section {
  position: relative;
  background: var(--white);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image .image-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

.about-text {
  flex: 1 1 500px;
}

.about-text h3 {
  color: var(--dark);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--medium);
  margin-bottom: 20px;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 30px;
}

.stat-item {
  flex: 1 1 150px;
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

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

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-text {
  color: var(--medium);
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

/* Workshops Section */
.workshops-section {
  position: relative;
  color: var(--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.workshops-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

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

.workshops-section .section-title,
.workshops-section .section-description {
  color: var(--white);
}

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

.workshops-section .card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.workshops-section .card-content h3 {
  color: var(--dark);
}

.workshops-section .card-content p {
  color: var(--medium);
}

/* Portfolio Section */
.portfolio-section {
  background: var(--white);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 15px;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--light);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--medium);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

/* Resources Section */
.resources-section {
  background: linear-gradient(135deg, #f5f7fa, #e6eef8);
}

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

.resources-section .card {
  background: var(--white);
  height: 100%;
}

.resource-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  padding: 8px 20px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

/* Testimonials Section */
.testimonials-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}

.testimonials-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

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

.testimonials-section .section-title,
.testimonials-section .section-description {
  color: var(--white);
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 40px;
  color: var(--dark-medium);
  box-shadow: var(--shadow-lg);
}

.testimonial-image {
  flex: 0 0 120px;
  margin-right: 30px;
}

.testimonial-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  flex: 1;
}

.testimonial-text p {
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 25px;
}

.testimonial-text p::before {
  content: '"';
  font-size: 60px;
  color: var(--primary-color);
  position: absolute;
  top: -20px;
  left: -5px;
  opacity: 0.3;
}

.testimonial-author h4 {
  color: var(--dark);
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--medium);
  margin: 0;
  font-style: normal;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.prev-btn,
.next-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--white);
  font-size: 18px;
}

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

.testimonial-dots {
  display: flex;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

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

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1 1 400px;
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  flex: 0 0 40px;
  margin-right: 20px;
}

.info-icon img {
  width: 40px;
  height: 40px;
}

.info-text h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.info-text p {
  color: var(--medium);
  margin: 0;
}

.contact-map {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-form {
  flex: 1 1 500px;
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid transparent;
  background: var(--white);
  border-radius: var(--radius-md);
  font-family: 'Merriweather', serif;
  font-size: 16px;
  color: var(--dark);
  transition: all var(--transition-normal);
}

.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(0, 117, 255, 0.2);
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
  position: relative;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  margin-bottom: 20px;
  max-width: 180px;
}

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

.footer h3 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

.footer-links ul li,
.footer-legal ul li,
.footer-social ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-legal ul li a,
.footer-social ul li a {
  color: var(--light-medium);
  transition: color var(--transition-normal);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover,
.footer-social ul li a:hover {
  color: var(--white);
}

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

.footer-bottom p {
  color: var(--light-medium);
  font-size: 14px;
  margin: 0;
}

/* Cookie Popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  padding-right: 20px;
}

.cookie-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background var(--transition-normal);
}

.cookie-btn:hover {
  background: var(--primary-dark);
}

/* Дополнительные страницы */
.page-content {
  padding-top: 150px;
  padding-bottom: 80px;
}

.page-title {
  margin-bottom: 40px;
  text-align: center;
}

.success-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.success-icon {
  font-size: 80px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.success-message h1 {
  margin-bottom: 20px;
  color: var(--dark);
}

.success-message p {
  color: var(--medium);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .testimonial-text p {
    padding-left: 0;
  }
  
  .testimonial-text p::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .testimonial-content {
    padding: 30px 20px;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin-bottom: 15px;
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.6rem;
  }
  
  .filter-btn {
    font-size: 12px;
    padding: 8px 15px;
  }
}