:root {
  /* Монохромная цветовая схема - оттенки темно-синего */
  --primary-color: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2444;
  --secondary-color: #4a6491;
  --secondary-light: #6c84b2;
  --secondary-dark: #354b73;
  --accent-color: #8aa0c5;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #777777;
  --background-light: #f5f7fa;
  --background-medium: #e9ecf2;
  --background-dark: #d2d8e6;
  --card-bg: #ffffff;
  --border-color: #dce1eb;
  --shadow-color: rgba(26, 54, 93, 0.15);
  --overlay-color: rgba(26, 54, 93, 0.8);
  --gradient-light: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  --gradient-dark: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --success-color: #2e7d32;
  --error-color: #c62828;
  
  /* Параметры типографики */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  --h1-size: 3.5rem;
  --h2-size: 2.75rem;
  --h3-size: 1.75rem;
  --h4-size: 1.25rem;
  --text-size: 1rem;
  --small-text: 0.875rem;
  
  /* Параметры макета */
  --container-width: 1200px;
  --card-border-radius: 12px;
  --button-border-radius: 8px;
  --transition-time: 0.3s;
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --h4-size: 1.15rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

p {
  margin-bottom: 1rem;
}

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

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

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

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Секции */
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background-color: var(--background-medium);
}

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

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

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

/* Искривленные сетки и динамические формы */
.curved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  transform: perspective(1000px) rotateX(2deg);
}

.card, .webinar-card, .blog-card, .testimonial-card {
  background: var(--card-bg);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover, .webinar-card:hover, .blog-card:hover, .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

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

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

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

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

/* Кнопки */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--button-border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-time) ease;
  border: 2px solid transparent;
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.btn:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.btn-tertiary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

button, input[type="submit"] {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--button-border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-time) ease;
  border: 2px solid transparent;
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

button:hover, input[type="submit"]:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  z-index: 10;
}

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

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

.desktop-nav ul li {
  margin-left: 1.5rem;
}

.desktop-nav ul li a {
  color: var(--primary-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav ul li a:hover {
  color: var(--primary-color);
}

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

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

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

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--primary-dark);
  z-index: 9;
  padding: 6rem 2rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

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

.mobile-nav ul li {
  margin-bottom: 1.5rem;
}

.mobile-nav ul li a {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
}

.hero-content h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Vision Section */
.vision-section {
  background-color: var(--background-light);
}

.vision-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.vision-content {
  flex: 1;
}

.vision-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.vision-image .image-container {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px var(--shadow-color);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.vision-image .image-container:hover {
  transform: rotate(0deg);
}

/* Instructors Section */
.instructors-section {
  background-color: var(--background-medium);
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.instructors-grid .card-image {
  height: 300px;
  width: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 1.5rem;
}

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

.instructor-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Webinars Section */
.webinars-section {
  background-color: var(--background-light);
}

.webinars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.webinar-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

/* External Resources Section */
.external-resources-section {
  background-color: var(--background-light);
  position: relative;
}

.external-resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/external-resources-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.external-resources-content {
  position: relative;
  z-index: 1;
}

.resources-grid .card {
  text-align: center;
  padding: 2rem;
}

/* Customer Stories Section */
.customer-stories-section {
  background-color: var(--background-light);
}

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

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

.testimonials-grid .card-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.testimonial-text::before, .testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-text::before {
  top: -10px;
  left: 0;
}

.testimonial-text::after {
  bottom: -20px;
  right: 0;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.testimonial-position {
  color: var(--secondary-color);
  font-size: var(--small-text);
}

/* Blog Section */
.blog-section {
  background-color: var(--background-medium);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-date {
  color: var(--text-muted);
  font-size: var(--small-text);
  margin-bottom: 1rem;
}

/* Community Section */
.community-section {
  background-color: var(--background-light);
}

.community-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.community-text {
  flex: 1;
}

.community-image {
  flex: 1;
}

.community-image img {
  border-radius: var(--card-border-radius);
  box-shadow: 0 15px 30px var(--shadow-color);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.community-image img:hover {
  transform: rotate(0deg);
}

.community-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-color);
}

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

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--button-border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.footer-logo p {
  margin-top: 1rem;
  color: var(--accent-color);
}

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

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul li a {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--text-light);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--accent-color);
  font-size: var(--small-text);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 54, 93, 0.95);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  display: none;
}

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

.cookie-content p {
  margin: 0;
  padding-right: 1rem;
}

.btn-cookie {
  background-color: var(--text-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.btn-cookie:hover {
  background-color: var(--background-light);
}

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

.success-content {
  max-width: 600px;
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: fadeInUp 1s ease;
}

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

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

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

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

/* Media Queries */
@media (max-width: 992px) {
  .vision-grid, .community-content {
    flex-direction: column;
  }
  
  .vision-image, .community-image {
    order: -1;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --h3-size: 1.25rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .instructors-grid .card-image {
    height: 200px;
    width: 200px;
  }
  
  .testimonials-grid .card-image {
    width: 100px;
    height: 100px;
  }
}