/* Projects Hero Section (как в weddings) */
.projects-hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: 1000px !important; /* Increased for desktop */
    padding-top: 130px !important;
    padding-bottom: 60px !important; /* Reduced bottom spacing */
    margin: 0 !important; /* remove all margins to reach screen edges */
    display: flex;
    align-items: flex-start; /* do not vertically center, respect paddings */
    justify-content: center; /* keep centered horizontally */
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    position: relative;
    overflow: hidden;
    width: 100vw !important; /* full viewport width */
    margin-left: calc(-50vw + 50%) !important; /* extend to screen edges */
    margin-right: calc(-50vw + 50%) !important; /* extend to screen edges */
    left: 50% !important; /* center positioning */
    transform: translateX(-50%) !important; /* center positioning */
    text-align: center; /* Centered text */
}
.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* SVG pattern: редкие и маленькие шестиугольники (соты) */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 900"><polygon points="450,120 495,145 495,195 450,220 405,195 405,145" fill="white" fill-opacity="0.08"/><polygon points="750,320 795,345 795,395 750,420 705,395 705,345" fill="white" fill-opacity="0.08"/><polygon points="150,320 195,345 195,395 150,420 105,395 105,345" fill="white" fill-opacity="0.08"/></svg>');
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    background-size: 1200px 1200px;
}
.projects-hero > * {
    position: relative;
    z-index: 2;
}

.projects-hero__text {
  flex: 0 1 800px;
  max-width: 800px;
  width: 100%;
  line-height: 1.7;
  padding: 0 20px; /* safe side padding */
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  top: 0;
}

/* .projects-hero__content styles removed - using projects-hero__text instead */
/* Text alignment styles removed - using center alignment like weddings */

.projects-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.projects-hero__subtitle {
  font-size: 1.13rem;
  margin-bottom: 2.2rem;
  color: #fff;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    margin-bottom: 1rem;
}

.feature__icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature__text {
    font-size: 1rem;
    font-weight: 500;
}

.projects-hero__features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 1.2rem auto 2rem auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.feature__icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
    color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
    animation: heartBeat 2s infinite;
}
.feature:nth-child(2) .feature__icon {
    animation-delay: 0.5s;
}
.feature:nth-child(3) .feature__icon {
    animation-delay: 1s;
}

.feature__text {
  font-weight: 500;
  font-size: 1.1rem;
    color: #fff;
}

.hero__contact-btn {
    text-align: center !important;
    margin-top: 2rem;
}

.hero__contact-btn .btn {
    font-size: 1.1rem;
    padding: 18px 36px;
    border-radius: 0;
    min-width: 220px;
    background: #fff;
    color: #222;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.hero__contact-btn .btn:hover {
    background: #f4e0c1;
    border-color: #f4e0c1;
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 177, 121, 0.3);
}
/* Hero contact button styles moved to combined 600px media query */

/* Media query 768px removed - using 900px like weddings */
@media (max-width: 480px) {
  .projects-hero__title,
  .projects-hero .projects-hero__title,
  .projects-hero__text .projects-hero__title {
    font-size: 2rem !important;
  }
    .projects-hero__subtitle {
        font-size: 1rem !important;
} 
    .projects-hero__image-placeholder {
        height: 350px;
  }
} 

/* --- DIRECTION CARD UNIFIED STYLE --- */
.projects-directions {
    background: var(--bg-light);
    padding: 100px 0;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.direction-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.direction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.direction-card:hover::before {
  transform: scaleX(1);
}

.direction-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  background: none;
  color: var(--primary-color);
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.direction-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #A67C52;
  margin-bottom: 1rem;
}

.direction-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.project-card__more-link {
  text-align: center;
  margin-top: 1rem;
}

.project-card__more-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.project-card__more-link a:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .directions-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .direction-card {
    padding: 1.5rem 1rem 1.2rem 1rem;
    min-height: 160px;
  }
  .direction-card__icon {
    font-size: 1.7rem;
    width: 40px;
    height: 40px;
    margin: 0 auto 0.7rem auto;
  }
  /* .projects-hero__container styles removed - using projects-hero__text */
  .partners {
    margin-top: 2.5rem !important;
  }
}
/* --- END DIRECTION CARD UNIFIED STYLE --- */ 

.project-card__img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  background: #eee;
}
@media (max-width: 900px) {
  .project-card__img {
    height: 200px;
  }
}
/* Project card styles moved to combined 600px media query */

/* Mobile Responsive */
@media (max-width: 900px) {
  .projects-hero {
    flex-direction: column;
    align-items: center;
    padding-top: 130px !important; /* keep consistent padding */
    padding-bottom: 60px !important; /* consistent bottom padding */
    padding-left: 0 !important; /* remove any left padding */
    padding-right: 0 !important; /* remove any right padding */
    text-align: center !important; /* center all content */
    min-height: auto !important; /* let content determine height */
    max-height: 800px !important; /* Smaller max height for mobile */
  }
  .projects-hero__text {
    max-width: 100vw;
    padding-left: 20px; /* add small side padding for text readability */
    padding-right: 20px; /* add small side padding for text readability */
    text-align: center !important;
    top: 0;
    padding-top: 0; /* remove extra top padding */
    margin: 0 auto; /* center the text container */
  }
  /* .projects-hero__title font-size removed to match weddings */
  .projects-hero__subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .projects-hero__title,
  .projects-hero .projects-hero__title,
  .projects-hero__text .projects-hero__title {
    font-size: 2.5rem !important;
  }
  
  .projects-hero__subtitle {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 600px) {
  .projects-hero__title,
  .projects-hero .projects-hero__title,
  .projects-hero__text .projects-hero__title {
    font-size: 2.5rem !important;
  }
  
  .projects-hero__subtitle {
    font-size: 1rem !important;
  }
  
  .hero__contact-btn .btn {
    font-size: 1rem;
    padding: 16px 28px;
    min-width: 160px;
    border-radius: 0;
  }
  
  .project-card__img {
    height: 140px;
  }
}

/* Responsive images for news card */
.project-card__img--desktop {
  display: block;
}

.project-card__img--mobile {
  display: none;
}

@media (max-width: 768px) {
  .project-card__img--desktop {
    display: none;
  }
  
  .project-card__img--mobile {
    display: block;
  }
} 