/* ======================================
   NEO-BRUTALISM CSS - Russian Site
   Bold & Graphic Style Implementation
   ====================================== */

/* CSS Variables - Neo-Brutalism Color System */
:root {
  /* Core Colors - High Contrast Palette */
  --color-primary: #1f2937;
  --color-secondary: #6b7280;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-accent: #ef4444; /* Bold red for accents */
  --color-accent-light: #f87171;
  --color-warning: #f59e0b;
  --color-success: #10b981;
  
  /* Background Colors - Distinct Section Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-hero: #1f2937;
  --bg-footer: #1f2937;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Font Sizes - Bold Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing Scale - Generous Breathing Room */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Neo-Brutalism Shadows - Bold Offset Shadows */
  --shadow-sm: 2px 2px 0 #000000;
  --shadow-md: 4px 4px 0 #000000;
  --shadow-lg: 6px 6px 0 #000000;
  --shadow-xl: 8px 8px 0 #000000;
  
  /* Border Radius - Sharp or Minimal */
  --radius-sharp: 0;
  --radius-soft: 4px;
  --radius-rounded: 8px;
  
  /* Border Widths - Bold Lines */
  --border-thin: 2px;
  --border-medium: 3px;
  --border-thick: 4px;
}

/* Base Styles - Neo-Brutalist Foundation */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Bold & Expressive */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-secondary);
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-secondary);
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-6);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* Links - Bold Interactive States */
a {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 600;
  border-bottom: var(--border-thin) solid transparent;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  transform: translateY(-1px);
}

a:focus {
  outline: var(--border-medium) solid var(--color-accent);
  outline-offset: 2px;
}

/* Lists - Clean Structure */
ul, ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* Buttons - Neo-Brutalist Design */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border-thick) solid var(--color-black);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

/* Primary Button - Bold Black */
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Secondary Button - Outlined */
.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

/* Accent Button - Red Bold */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-black);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Large Buttons */
.btn-lg {
  padding: var(--space-6) var(--space-12);
  font-size: var(--text-lg);
}

/* Small Buttons */
.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* Cards - Neo-Brutalist Grid Layouts */
.card {
  background: var(--color-white);
  border: var(--border-thick) solid var(--color-black);
  border-radius: var(--radius-soft);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  color: var(--color-primary);
  line-height: 1.6;
}

.card-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-thin) solid var(--color-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Card - Full Width Impact */
.card-hero {
  background: var(--bg-hero);
  color: var(--color-white);
  border-color: var(--color-black);
  border-width: var(--border-thick);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-16);
}

.card-hero h1 {
  color: var(--color-white);
  font-size: var(--text-6xl);
  margin-bottom: var(--space-8);
}

/* Section Layouts - Distinct Backgrounds */
.section {
  padding: var(--space-20) 0;
  border-bottom: var(--border-thin) solid var(--color-black);
}

.section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.section:nth-child(odd) {
  background-color: var(--bg-primary);
}

.section-dark {
  background-color: var(--bg-hero);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-white);
}

.section-light {
  background-color: var(--bg-tertiary);
}

/* Container System - Full Width Neo-Brutalism */
.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* Grid System - Bold Layout Structure */
.grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Forms - Bold Interactive Elements */
.form-group {
  margin-bottom: var(--space-8);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-primary);
  background: var(--color-white);
  border: var(--border-medium) solid var(--color-black);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translate(-2px, -2px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Navigation - Bold Header */
.navbar {
  background: var(--color-black);
  color: var(--color-white);
  border-bottom: var(--border-thick) solid var(--color-accent);
  padding: var(--space-4) 0;
  position: relative;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-8);
}

.navbar-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: var(--border-thin) solid transparent;
  transition: all 0.15s ease;
}

.navbar-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-primary);
}

/* Hero Section - Bold Impact */
.hero {
  background: var(--bg-hero);
  color: var(--color-white);
  padding: var(--space-24) 0;
  text-align: center;
  border-bottom: var(--border-thick) solid var(--color-accent);
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--text-6xl);
  font-weight: 900;
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: var(--text-xl);
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-12) auto;
  line-height: 1.6;
}

.hero .btn {
  font-size: var(--text-lg);
  padding: var(--space-6) var(--space-12);
}

/* Footer - Bold Footer Design */
.footer {
  background: var(--bg-footer);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: var(--border-thick) solid var(--color-accent);
}

.footer h4 {
  color: var(--color-white);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.footer p,
.footer a {
  color: var(--color-secondary);
  line-height: 1.6;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-bottom {
  border-top: var(--border-thin) solid var(--color-primary);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--color-secondary);
  font-size: var(--text-sm);
}

/* Utility Classes - Neo-Brutalist Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-bolder { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.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); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

/* Responsive Design - Mobile-First */
@media (max-width: 768px) {
  .container,
  .container-narrow,
  .container-wide {
    padding: 0 var(--space-4);
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .hero p {
    font-size: var(--text-lg);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .navbar-container {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .navbar-nav {
    gap: var(--space-4);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .card {
    padding: var(--space-6);
  }
  
  .card-hero {
    min-height: 50vh;
    padding: var(--space-12) var(--space-6);
  }
  
  .card-hero h1 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }
  
  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}

/* Loading States - Bold Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus States - Bold Accessibility */
*:focus {
  outline: var(--border-medium) solid var(--color-accent);
  outline-offset: 2px;
}

/* Print Styles - Clean Print Layout */
@media print {
  .btn,
  .navbar,
  .footer {
    display: none;
  }
  
  .section,
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #000000;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --color-accent: #0000ff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}