/* ===================================
   Я ТВОРЮ МИР — Base Styles
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&display=swap');

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

/* === SECTION === */
.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--dark {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.section--warm {
  background: var(--color-cream);
}

.section--primary-ultra-light {
  background: var(--color-primary-ultra-light);
}

.section--secondary-ultra-light {
  background: var(--color-secondary-ultra-light);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section-subtitle--white {
  color: rgba(255,255,255,0.75);
}

/* === TYPOGRAPHY === */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.text-subheading {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-gray-500); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--primary {
  background: var(--color-primary-ultra-light);
  color: var(--color-primary);
}

.badge--secondary {
  background: var(--color-secondary-ultra-light);
  color: var(--color-secondary);
}

.badge--accent {
  background: var(--color-accent-ultra-light);
  color: var(--color-accent-dark);
}

.badge--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.badge--archive {
  background: rgba(92, 26, 142, 0.06);;
  color: var(--color-archive);
}

.badge--live {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
}

.badge--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

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

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--color-accent);
  box-shadow: 0 12px 40px rgba(230,57,70,0.35);
}

.btn--secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-secondary);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(45,106,159,0.35);
}

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

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

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

.btn--outline--white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--color-primary-ultra-light);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}

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

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn--coming-soon {
  background: linear-gradient(135deg, #F4A11A, #E63946);
  color: var(--color-white);
  cursor: default;
  position: relative;
}

.btn--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === CARDS === */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card__body {
  padding: var(--space-6);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card--flat {
  box-shadow: none;
  border: var(--border-medium);
}

.card--glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
}

/* === GRID === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === FLEX === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* === TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-cream);
  border: var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gray-600);
  white-space: nowrap;
}

/* === DIVIDERS === */
.divider {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
  margin: var(--space-4) 0;
}

.divider--center {
  margin: var(--space-4) auto;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Scroll-triggered */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal--left {
  transform: translateX(-24px);
}

.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden { @extend .sr-only; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.w-full { width: 100%; }
.max-w-2xl { max-width: 672px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === ABSTRACT BG DECORATIONS === */
.bg-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.bg-decor--red {
  background: var(--color-primary);
}

.bg-decor--gold {
  background: var(--color-accent);
}

.bg-decor--blue {
  background: var(--color-secondary);
}

/* === PAGE HEADER === */
.page-header {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
}

.breadcrumbs a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

.breadcrumbs__sep {
  font-size: var(--text-xs);
  opacity: 0.4;
}

.breadcrumbs__current {
  color: rgba(255,255,255,0.8);
}

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
  transition: all var(--transition-fast);
}

.back-link:hover {
  gap: var(--space-3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  
  .section-title { font-size: var(--text-3xl); }
  .text-display { font-size: var(--text-5xl); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  .section--lg { padding: var(--space-20) 0; }
  
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .section-title { font-size: var(--text-2xl); }
  .text-display { font-size: var(--text-4xl); }
  
  .page-header__title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  
  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }
  
  .section-title { font-size: var(--text-xl); }
  .text-display { font-size: var(--text-3xl); }
}
