/* ===== Base Styles ===== */
:root {
  --primary-color: #2CD2B1;
  --secondary-color: #37e67a;
  --accent-color: #01abdf;
  --text-color: #333;
  --white: #fff;
  --gradient: linear-gradient(0deg, #8CE96C 0%, #2CD2B1 100%);
  --light-bg: rgb(133, 255, 247);
  --dark-bg: rgba(53, 189, 181, 0.1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Roboto Condensed", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
  }
  
  h1, h2, h3 {
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    color: var(--primary-color);
    
  }
  
  /* ===== Layout Components ===== */
  .wrapper {
    background: var(--white);
    min-height: 100vh;
    position: relative;
    z-index: 1; /* Ensure content stays above background */
    display: flex;
    flex-direction: column;
  }

  .background {
    position: fixed;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    top: 0;
    left: 0;
  }
  
  .content-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
    padding-bottom: 2rem; /* Space before footer */
  }

  /* ===== Header Styles ===== */
  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--primary-color);
    position: relative;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
  }
  
  .logo-img {
    width: 60px;
    height: auto;
  }
  
  .logo-text {
    color: var(--white);
    font-family: "Russo One", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  .main-nav {
    display: flex;
  }
  
  .nav-list {
    display: flex;
    gap: 1rem;
    list-style: none;
  }
  
  .nav-item a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .nav-item.active a {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
  }
  
  .nav-item a:hover {
    background: var(--white);
    color: var(--primary-color);
  }
  
  /* ===== Contacts Section ===== */
  .contacts-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .contact-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  .contact-type {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .contact-icon {
    width: 24px;
    height: 24px;
  }
  
  /* Contact Form Styles */
  .contact-form {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .contact-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
  }
  
  .form-group textarea {
    resize: vertical;
  }
  
  .submit-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: "Russo One", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0;
  }
  
  .submit-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
  }
  
/* Team Section Styles */
h1.card-title {
  padding-top: 3rem;
  text-align: center;
}
.team-section {
  /* Разблокировать и в тим-секшон и в тим кард*/
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  background: var(--dark-bg);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  /* border: 3px solid var(--accent-color); */
}

.team-role {
  color: var(--accent-color);
  font-weight: 700;
  margin: 0.5rem 0;
}

.team-bio {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-social img {
  width: 24px;
  margin: 0 5px;
  opacity: 0.7;
  transition: opacity 0.3s;
}


.team-social img:hover {
  opacity: 1;
}

.duo-card {
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-duo-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.team-duo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(515px, 2fr));
  gap: 2rem;
}
/* =============================================Footer Styles================================================== */
.main-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  border-top: 2px solid var(--primary-color);
  position: relative; 
  z-index: 2; 
  width: 100%;
  margin-top: auto; 
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  border-radius: 10px;
  height: 60px;
  width: auto;
  opacity: 1;
  transition: 0.3s;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.footer-links {
  display: flex;
  align-items: center; 
  gap: 1rem;
}

.footer-icon {
  height: 60px;
  width: auto;
  opacity: 1;
  margin-right: 10px;
  flex-shrink: 0; 
}

.footer-text-group {
  display: flex;
  flex-direction: column;
}

.footer-text {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--white);
}

.footer-text a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text a:hover {
  color: var(--light-bg);
  text-decoration: underline;
}

  /* ===== Responsive Design ===== */
  @media (max-width: 768px) {
    .team-duo-grid {
      grid-template-columns: 1fr;}
    .team-grid {
      grid-template-columns: 1fr;}

    .main-header {
      flex-direction: column;
      padding: 1rem;
      gap: 1rem;
    }
  
    .nav-list {
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .contacts-section {
      padding: 1.5rem;
    }

  .footer-logos {
    justify-content: center;
    margin-bottom: 1rem;
  }
  .footer-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-icon-group {
    margin-bottom: 1rem;
  }

  }
  
  @media (max-width: 480px) {
    .logo-link {
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
    }
  
    .content-container {
      width: 95%;
    }
  
    .page-title {
      font-size: 1.5rem;
    margin-bottom: 1.5rem;
    }
  }
