:root {
  /* Основные цвета (дополнительная схема) */
  --primary: #0033a0;       /* YPF синий */
  --primary-dark: #00297f;  /* Темный синий */
  --primary-light: #3355c2; /* Светлый синий */
  --secondary: #d81e05;     /* YPF красный */
  --secondary-dark: #b01903;/* Темный красный */
  --secondary-light: #ff3c27;/* Светлый красный */
  
  /* Нейтральные цвета */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #dddddd;
  --light: #f8f9fa;
  --white: #ffffff;
  
  /* Тени для нейроморфизма */
  --neumorph-light: rgba(255, 255, 255, 0.5);
  --neumorph-dark: rgba(0, 0, 0, 0.1);
  --neumorph-border: rgba(255, 255, 255, 0.2);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(145deg, var(--primary), var(--primary-dark));
  --gradient-secondary: linear-gradient(145deg, var(--secondary), var(--secondary-dark));
  
  /* Тени */
  --shadow-sm: 3px 3px 6px var(--neumorph-dark), -3px -3px 6px var(--neumorph-light);
  --shadow-md: 5px 5px 10px var(--neumorph-dark), -5px -5px 10px var(--neumorph-light);
  --shadow-lg: 10px 10px 20px var(--neumorph-dark), -10px -10px 20px var(--neumorph-light);
  --shadow-inset: inset 3px 3px 6px var(--neumorph-dark), inset -3px -3px 6px var(--neumorph-light);
  
  /* Переходы и анимации */
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Скругления */
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
  --border-radius-xl: 40px;
}

/* Общие стили */
body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Адаптивная типографика */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  h2 {
    font-size: clamp(1.75rem, 6vw, 3rem);
  }
  
  h3 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  
  h4 {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }
}

/* Нейроморфические элементы */
.neumorph-card {
  background: var(--light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  border: 1px solid var(--neumorph-border);
  overflow: hidden;
}

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

.neumorph-img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.neumorph-img:hover {
  transform: scale(1.02);
}

.neumorph-btn {
  background: var(--light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neumorph-border);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.neumorph-btn:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(0);
}

.neumorph-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.neumorph-btn:hover::after {
  animation: ripple 1s ease-out;
}

.neumorph-input {
  background: var(--light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-inset);
  border: 1px solid var(--neumorph-border);
  padding: 12px 15px;
  transition: var(--transition-medium);
}

.neumorph-input:focus {
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  outline: none;
}

.neumorph-toggle {
  background: var(--light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.neumorph-toggle .btn {
  border: none;
  box-shadow: none;
  background: transparent;
  transition: var(--transition-fast);
}

.neumorph-toggle .btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-inset);
}

.neumorph-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  margin-right: 20px;
}

.neumorph-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.neumorph-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.neumorph-modal {
  background: var(--light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: none;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Основные компоненты */
/* Header */
.header-neumorph {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
  padding: 15px 0;
}

.header-neumorph.scrolled {
  padding: 10px 0;
}

.navbar-brand img {
  transition: var(--transition-medium);
  max-height: 60px;
}

.navbar-toggler {
  border: none;
  padding: 10px;
}

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

.nav-link {
  font-weight: 500;
  color: var(--dark);
  padding: 8px 15px;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-medium);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  z-index: 0;
}

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

.hero-section h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns .btn {
  margin: 0.5rem;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Statistics Section */
.statistics-section {
  padding: 80px 0;
  background: var(--light);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.stat-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 1.1rem;
  color: var(--gray);
  text-align: center;
}

.statistics-description {
  margin-top: 2rem;
  text-align: center;
  color: var(--gray-dark);
  font-size: 1.1rem;
}

/* History Section */
.history-section {
  padding: 80px 0;
  background-color: var(--light);
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline-item {
  margin-bottom: 60px;
}

.timeline-content {
  height: 100%;
}

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

.timeline-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-img img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}

/* Portfolio/Estaciones Section */
.portfolio-section {
  padding: 80px 0;
}

.portfolio-filters {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-grid {
  margin-top: 30px;
}

.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-item .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item .card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
}

.portfolio-item .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.portfolio-item:hover .card-img-top {
  transform: scale(1.05);
}

.portfolio-item .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

/* Innovation Section */
.innovation-section {
  padding: 80px 0;
}

.innovation-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.innovation-content {
  height: 100%;
}

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

/* Partners Section */
.partners-section {
  padding: 80px 0;
}

.partners-carousel {
  margin-top: 40px;
}

.partner-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.partner-card img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  transition: var(--transition-medium);
}

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

.partner-card h5 {
  margin-bottom: 10px;
  color: var(--primary);
}

.partners-description {
  margin-top: 40px;
  text-align: center;
  color: var(--gray-dark);
}

/* External Links Section */
.external-links-section {
  padding: 80px 0;
}

.external-link-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.external-link-card h4 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* Research Section */
.research-section {
  padding: 80px 0;
}

.research-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
}

.research-card {
  margin-bottom: 30px;
}

.research-card .card-body h4 {
  color: var(--primary);
  margin-bottom: 15px;
}

.research-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Events Calendar Section */
.events-section {
  padding: 80px 0;
}

.events-calendar {
  height: 100%;
}

.event-item {
  display: flex;
  margin-bottom: 30px;
}

.event-content {
  flex: 1;
}

.event-content h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.event-location {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.events-featured {
  height: 100%;
}

.featured-img {
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-medium);
}

.events-featured:hover .featured-img img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
}

.featured-content {
  padding: 30px;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-info {
  height: 100%;
}

.info-item {
  margin-bottom: 25px;
}

.info-item h5 {
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.info-item i {
  margin-right: 10px;
  color: var(--primary);
}

.contact-form {
  height: 100%;
}

.social-links {
  margin-top: 30px;
}

.social-links h5 {
  margin-bottom: 15px;
  color: var(--primary);
}

.social-link {
  display: inline-block;
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: var(--transition-fast);
  color: var(--dark);
  text-decoration: none;
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.map-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer-section {
  padding: 60px 0 30px;
  background-color: var(--dark);
  color: var(--white);
}

.footer-section h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  color: var(--gray-light);
}

.footer-section a {
  color: var(--gray-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-section .social-links a {
  color: var(--gray-light);
  margin-right: 15px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-section .social-links a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.footer-section hr {
  background-color: var(--gray);
  opacity: 0.2;
}

/* Cookie Consent */
#cookieConsentPopup {
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

#acceptCookies {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 10px 25px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Utils */
.parallax-container {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Other Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 70vh;
}

.about-page .hero-img,
.contacts-page .hero-img,
.privacy-page .hero-img,
.terms-page .hero-img {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 50px;
}

.about-page .hero-img::before,
.contacts-page .hero-img::before,
.privacy-page .hero-img::before,
.terms-page .hero-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.about-page .hero-content,
.contacts-page .hero-content,
.privacy-page .hero-content,
.terms-page .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  color: var(--white);
}

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

.success-card {
  max-width: 600px;
  width: 100%;
  padding: 50px 30px;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.success-title {
  margin-bottom: 20px;
  color: var(--primary);
}

.success-message {
  margin-bottom: 30px;
  color: var(--gray-dark);
}

/* Media Queries */
@media (max-width: 991px) {
  .hero-section {
    padding: 100px 0 50px;
  }
  
  .timeline-item {
    margin-bottom: 40px;
  }
  
  .timeline-content {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .event-item {
    flex-direction: column;
  }
  
  .event-date {
    margin-bottom: 15px;
    margin-right: 0;
    align-self: flex-start;
  }
  
  .timeline-img {
    margin-bottom: 20px;
  }
  
  .footer-section h5 {
    margin-top: 30px;
  }
  
  .stat-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .hero-btns .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .social-links .d-flex {
    flex-wrap: wrap;
  }
}

/* Animations for AOS */
[data-aos="custom-fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="custom-fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="custom-fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="custom-fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="custom-fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="custom-fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="custom-zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="custom-zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}