:root {
  /* Триадная цветовая схема */
  --primary: #ff3d5a;
  --primary-dark: #d92a45;
  --primary-light: #ff667e;
  --secondary: #33c1ff;
  --secondary-dark: #228fb8;
  --secondary-light: #75d5ff;
  --tertiary: #ffc833;
  --tertiary-dark: #d9a928;
  --tertiary-light: #ffd86b;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #bbbbbb;
  --light: #f5f5f7;
  --white: #ffffff;
  
  /* Семантические цвета */
  --text-primary: var(--dark);
  --text-secondary: var(--gray-dark);
  --text-light: var(--white);
  
  /* Размеры */
  --header-height: 80px;
  --border-radius: 0px;
  --border-radius-lg: 8px;
  --card-border-radius: 12px;
  --button-border-radius: 0px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h1 {
  font-weight: 900;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--primary);
}

section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(odd) {
  background-color: var(--white);
}

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

/* Brutalist Design Elements */
.brutalist-box {
  border: 3px solid var(--dark);
  box-shadow: 8px 8px 0 var(--dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brutalist-box:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dark);
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--button-border-radius);
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid transparent;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: left 0.4s cubic-bezier(0.55, 0, 0.1, 1);
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-brand img {
  max-height: 60px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  color: var(--primary);
}

.navbar-nav .nav-link:hover:before, .navbar-nav .nav-link:focus:before {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 0 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transform: skew(-5deg);
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* History Section */
.history-section {
  overflow: hidden;
}

.history-section .image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-border-radius);
  box-shadow: 15px 15px 0 var(--tertiary);
  margin-bottom: 2rem;
}

.history-section img {
  transition: transform 0.5s ease;
}

.history-section .image-container:hover img {
  transform: scale(1.05);
}

.timeline {
  margin-top: 5rem;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  z-index: 0;
}

.timeline-container {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-item {
  width: 100%;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--card-border-radius);
  width: 40%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  border-left: 5px solid var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
}

.timeline-content h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Insights Section */
.insights-section .card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.insights-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.insights-section .card-image {
  overflow: hidden;
  height: 250px;
  text-align: center;
}

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

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

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

.insights-section .card-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.resource-card {
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card .card-image {
  height: 200px;
  overflow: hidden;
  text-align: center;
}

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

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

.resource-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resource-card .card-content h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.resource-card .btn {
  margin-top: auto;
}

/* Press Section */
.press-section {
  overflow: hidden;
}

.press-slider {
  position: relative;
}

.press-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--card-border-radius);
  position: relative;
}

.press-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.press-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.press-date {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 1rem;
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 1;
}

/* FAQ Section */
.faq-section {
  background-color: var(--white);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 1.5rem;
  background-color: var(--white);
  color: var(--text-primary);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff3d5a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--light);
}

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

.contact-info {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--card-border-radius);
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control, .form-select {
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 61, 90, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.map-container {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: 5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
}

.footer-logo {
  display: block;
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-heading:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

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

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

.footer-links a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-right: 1rem;
  font-weight: 600;
}

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

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

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

.copyright {
  color: var(--gray-light);
}

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

#cookieConsent .btn {
  margin-left: 0.5rem;
}

/* Page Specific Styles */
.about-page, .privacy-page, .terms-page, .contacts-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--light);
  padding-top: 80px;
}

.success-container {
  max-width: 600px;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.success-message h2 {
  color: var(--primary);
}

/* Dynamic Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Read More Links */
a.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Media Queries */
@media (max-width: 991.98px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 100px 0 50px;
  }
  
  .timeline-content {
    width: 80%;
  }
  
  .timeline:before {
    left: 40px;
  }
  
  .timeline-item {
    justify-content: flex-start;
    padding-left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .contact-form-container,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .press-image {
    height: 250px;
    margin-bottom: 1.5rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-heading:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-link {
    margin: 0 0.5rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.2rem;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline:before {
    left: 20px;
  }
}