/* General Styles */
:root {
  --primary-color: #333333;
  --secondary-color: #666666;
  --light-color: #f5f5f5;
  --dark-color: #1a1a1a;
  --accent-color: #999999;
  --transition-duration: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--primary-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

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

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-duration) ease;
}

.navbar-item:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.hero-title, .hero-subtitle {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-description {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-down-icon {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Vision Section */
.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-content {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.8s ease;
}

.vision-content.animate {
  transform: translateX(0);
  opacity: 1;
}

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

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.parallax-element {
  transform: translateY(0);
  transition: transform 0.5s ease;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -8px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.portfolio-card {
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-card .card-image {
  overflow: hidden;
}

.portfolio-card .card-image img {
  transition: transform 0.5s ease;
}

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

/* Gallery */
.gallery {
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Insights Section */
.insights-section {
  position: relative;
}

.insight-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-5px);
}

.icon-container {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.animated-icon {
  transition: transform var(--transition-duration) ease;
}

.insight-card:hover .animated-icon {
  transform: scale(1.2);
}

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

.resource-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card ul {
  list-style-type: none;
  padding-left: 0;
}

.resource-card ul li {
  margin-bottom: 0.5rem;
}

.resource-card ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.resource-card ul li a:hover {
  color: var(--accent-color);
}

/* Sustainability Section */
.sustainability-section {
  position: relative;
}

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

.blog-card {
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .card-image {
  overflow: hidden;
}

.blog-card .card-image img {
  transition: transform 0.5s ease;
}

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

/* Projects Section */
.projects-section {
  position: relative;
}

.project-card {
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card .card-image {
  overflow: hidden;
}

.project-card .card-image img {
  transition: transform 0.5s ease;
}

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

/* Contact Section */
.contact-section {
  background-color: white;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item .icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

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

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 1.5rem;
}

.footer .title {
  color: white;
}

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

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

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

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

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

.social-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.social-links a:hover {
  color: white;
}

.divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.copyright {
  color: #999999;
}

/* About Page */
.team-card {
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card .card-image {
  overflow: hidden;
}

.team-card .card-image img {
  transition: transform 0.5s ease;
}

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

.value-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
}

.testimonial-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.testimonial-text {
  margin-top: 2rem;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
  text-align: right;
}

/* Contacts Page */
.contact-info-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
  text-align: center;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

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

.map-container img {
  width: 100%;
  height: auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform var(--transition-duration) ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Privacy & Terms Page */
.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Success Page */
.success-section {
  padding-top: 5rem;
}

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

.success-icon {
  font-size: 5rem;
  color: #4CAF50;
  animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-image {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 5px;
}

.success-image img {
  width: 100%;
  height: auto;
}

.next-step-card {
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease;
  height: 100%;
  text-align: center;
}

.next-step-card:hover {
  transform: translateY(-5px);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: 23px;
  }
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Искривленные сетки */
.curved-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  transform: perspective(1000px) rotateX(5deg);
}

.curved-grid-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.curved-grid-item:hover {
  transform: translateZ(20px);
}

/* GSAP Animation Classes */
.fade-in {
  opacity: 0;
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.slide-down {
  opacity: 0;
  transform: translateY(-50px);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
}

/* Custom Button Styles */
.button.is-primary {
  background-color: var(--primary-color);
  transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.button.is-primary:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
}

.button.is-light {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.button.is-light:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
}

/* Custom Form Styles */
.input, .textarea, .select select {
  border-radius: 5px;
  border: 1px solid #dddddd;
  box-shadow: none;
  transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Page Transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 9999;
  transform: translateY(100%);
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.is-transitioning .transition-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Menu */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: none;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-item {
    padding: 0.5rem 0;
  }
}