/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
  /* Триадная цветовая схема */
  --primary-color: #FF6B35;
  --primary-dark: #E5572E;
  --primary-light: #FF8A5C;
  --secondary-color: #4ECDC4;
  --secondary-dark: #45B7AF;
  --secondary-light: #6DD5CE;
  --accent-color: #FFE66D;
  --accent-dark: #E6CF62;
  --accent-light: #FFED8A;
  
  /* Дополнительные цвета */
  --text-primary: #2C3E50;
  --text-secondary: #5A6C7D;
  --text-light: #8E9AAF;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --gradient-overlay: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(78, 205, 196, 0.8));
  --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  
  /* Тени и эффекты */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
  
  /* Анимации */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Типографика */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ КНОПОК ===== */
.btn, 
button:not(.faq-question), 
input[type='submit'],
input[type='button'] {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before,
button:not(.faq-question)::before,
input[type='submit']::before,
input[type='button']::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn:hover::before,
button:not(.faq-question):hover::before,
input[type='submit']:hover::before,
input[type='button']:hover::before {
  left: 0;
}

.btn-primary,
button:not(.faq-question),
input[type='submit'] {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
button:not(.faq-question):hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ===== НАВИГАЦИЯ ===== */
header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

nav a {
  position: relative;
  transition: all var(--transition-normal);
}

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

nav a:hover::after {
  width: 100%;
}

/* ===== HERO СЕКЦИЯ ===== */
#hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideInFromTop 1s ease-out;
}

.hero-subtitle {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInFromBottom 1s ease-out 0.3s both;
}

/* ===== АНИМАЦИИ ===== */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -10px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ===== КАРТОЧКИ ===== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

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

.card:hover::before {
  opacity: 0.05;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

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

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

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

/* ===== СЕКЦИИ ===== */
section {
  padding: 80px 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* ===== OUR PROCESS ===== */
#process .card {
  border-top: 4px solid var(--primary-color);
}

#process .card:nth-child(2) {
  border-top-color: var(--secondary-color);
}

#process .card:nth-child(3) {
  border-top-color: var(--accent-color);
}

/* ===== EVENTS СЕКЦИЯ ===== */
#events .card {
  transition: all var(--transition-normal);
}

#events .card:hover {
  transform: translateY(-10px) rotate(1deg);
}

#events .card-content .btn {
  margin-top: auto;
}

/* ===== TEAM СЕКЦИЯ ===== */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member .card-image {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.team-member:nth-child(2) .card-image {
  border-color: var(--secondary-color);
}

.team-member:nth-child(3) .card-image {
  border-color: var(--accent-color);
}

/* ===== MEDIA/GALLERY СЕКЦИЯ ===== */
#media .card {
  height: 250px;
}

#media .card-image {
  height: 100%;
}

#media .card:hover {
  transform: scale(1.05);
}

/* ===== FAQ СЕКЦИЯ ===== */
.faq-question {
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-normal);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question svg {
  transition: transform var(--transition-normal);
}

.faq-question.active svg {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  transition: all var(--transition-normal);
  max-height: 0;
}

.faq-answer.show {
  max-height: 200px;
  padding-top: 16px;
}

/* ===== CONTACT СЕКЦИЯ ===== */
#contact {
  background: var(--gray-50);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('image/contact-background-pattern.jpg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

#contact > * {
  position: relative;
  z-index: 1;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all var(--transition-normal);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-800);
  color: var(--white);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

footer h3, footer h4 {
  color: var(--white);
}

footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-normal);
  position: relative;
}

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

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-links a {
  padding: 8px 16px;
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== ЧИТАТЬ ДАЛЕЕ ССЫЛКИ ===== */
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  margin-left: 8px;
  transition: transform var(--transition-normal);
}

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

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

/* ===== СТРАНИЦЫ PRIVACY И TERMS ===== */
.legal-page {
  padding-top: 100px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h2 {
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.legal-content h3 {
  color: var(--text-secondary);
  margin: 32px 0 16px;
}

.legal-content p, 
.legal-content li {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  text-align: center;
  padding: 20px;
}

.success-content {
  background: var(--white);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 24px;
  font-size: 3rem;
}

.success-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* ===== ОТЗЫВЧИВОСТЬ ===== */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .team-member .card-image {
    width: 150px;
    height: 150px;
  }
  
  .legal-content {
    padding: 20px 15px;
  }
  
  .success-content {
    padding: 40px 20px;
  }
  
  .success-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .team-member .card-image {
    width: 120px;
    height: 120px;
  }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Скрытие полос прокрутки в Webkit */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Фокус для доступности */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}