:root {
  /* Ретро цветовая палитра - яркая */
  --primary-color: #ff4d4d;
  --primary-dark: #e63939;
  --secondary-color: #4dabff;
  --secondary-dark: #3b8fd9;
  --accent-color: #ffcc00;
  --accent-dark: #e6b800;
  --background-light: #ffffff;
  --background-dark: #222222;
  --background-medium: #f5f5f5;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #777777;
  --border-color: #dddddd;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  
  /* Тени и эффекты */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  --card-border-radius: 12px;
  --button-border-radius: 8px;
  --input-border-radius: 6px;
  
  /* Типографика */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  --base-font-size: 16px;
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.8rem;
  --h4-size: 1.3rem;
  --small-font: 0.875rem;
  
  /* Отступы и размеры */
  --section-padding: 6rem 0;
  --container-padding: 0 2rem;
  --grid-gap: 2rem;
  --card-padding: 2rem;
}

/* Ретро градиенты для фона */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  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(--text-dark);
}

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

h2 {
  font-size: var(--h2-size);
  position: relative;
  margin-bottom: 2.5rem;
}

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

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

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Кнопки - глобальные стили */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--button-border-radius);
  font-family: var(--heading-font);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  box-shadow: var(--box-shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

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

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

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--text-dark);
}

button, input[type="submit"] {
  cursor: pointer;
  font-family: var(--body-font);
  transition: all 0.3s ease;
}

/* Формы и инпуты */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--input-border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.2);
}

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

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

/* Toggle switch */
.toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 34px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Карточки */
.card {
  background-color: var(--background-light);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

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

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

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

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

.card-content {
  padding: 1.5rem;
  text-align: center;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

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

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

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.logo span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

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

.main-nav a:hover::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-color: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero секция */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: var(--text-shadow);
}

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

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

/* History Section */
.history-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
  margin-bottom: 3rem;
}

.history-image {
  flex: 1;
  min-width: 300px;
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
}

.history-text {
  flex: 2;
  min-width: 300px;
}

.milestones {
  margin-top: 4rem;
}

.milestone-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.milestone-item {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  background-color: var(--background-medium);
  border-radius: var(--card-border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

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

.milestone-item .year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.milestone-item .description {
  color: var(--text-dark);
}

/* Workshops Section */
.workshop-carousel {
  position: relative;
  margin-bottom: 4rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-control {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--border-color);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}

.workshop-schedule {
  margin-top: 4rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.schedule-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.schedule-row.header {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 600;
}

.schedule-cell {
  flex: 1;
  padding: 1rem;
  text-align: center;
  min-width: 150px;
}

.schedule-row:nth-child(even) {
  background-color: var(--background-medium);
}

/* Clientele Section */
.success-stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 4rem;
}

.success-stories .card {
  height: 100%;
}

.success-stories .card-image {
  height: 400px;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.achievement {
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.testimonials {
  margin-top: 4rem;
}

.testimonial-slider {
  position: relative;
  margin-top: 2rem;
}

.testimonial-slide {
  display: none;
}

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

.testimonial {
  background-color: var(--background-light);
  border-radius: var(--card-border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.testimonial .quote {
  font-style: italic;
  position: relative;
  padding: 0 2rem;
}

.testimonial .quote::before,
.testimonial .quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial .quote::before {
  top: -20px;
  left: 0;
}

.testimonial .quote::after {
  bottom: -40px;
  right: 0;
}

.author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.author-info p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.testimonial-control {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.testimonial-control:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Resources Section */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

/* Contact Section */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-item p {
  margin-bottom: 0.5rem;
}

.map-container {
  height: 300px;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  margin-top: 2rem;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background-color: var(--background-medium);
  padding: 2rem;
  border-radius: var(--card-border-radius);
}

.contact-form-container h3 {
  margin-bottom: 2rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--text-muted);
}

.footer-nav {
  flex: 1;
  min-width: 200px;
}

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

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

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

.footer-nav a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

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

.footer-social {
  flex: 1;
  min-width: 200px;
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

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

.footer-contact {
  flex: 1;
  min-width: 250px;
}

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

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

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

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  overflow-y: auto;
}

.modal-content {
  background-color: var(--background-light);
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-content h2 {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1.5rem;
  margin: 0;
  position: relative;
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.modal-body img {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: auto;
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
}

.modal-info {
  flex: 2;
  min-width: 300px;
}

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

.modal-info ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-info .btn {
  margin-top: 1rem;
}

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

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

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

.success-message h2 {
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.success-actions {
  margin-top: 2rem;
}

/* About, Privacy, Terms Pages */
.page-content {
  padding-top: 100px;
  min-height: 100vh;
}

.page-title {
  margin-bottom: 3rem;
  text-align: center;
}

.page-section {
  margin-bottom: 4rem;
}

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

/* Анимации при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

/* Медиа-запросы */
@media (max-width: 992px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.2rem;
    --h3-size: 1.6rem;
    --section-padding: 5rem 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.4rem;
    --section-padding: 4rem 0;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 0.8rem 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .schedule-table {
    overflow-x: auto;
    display: block;
  }
}

@media (max-width: 576px) {
  :root {
    --h1-size: 2.2rem;
    --h2-size: 1.8rem;
    --h3-size: 1.3rem;
    --section-padding: 3rem 0;
    --container-padding: 0 1.5rem;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .success-container {
    padding: 2rem 1.5rem;
  }
}

/* Дополнительные стили для contacts.html, about.html, privacy.html, terms.html */
body.subpage {
  padding-top: 80px;
}

/* Cookie Consent Styles */
#cookieConsent {
  transition: opacity 0.5s ease;
}

#acceptCookies {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#acceptCookies:hover {
  background-color: #e63939;
  transform: scale(1.05);
}