@import url('../common/base.css');

/* ================== КОНТЕНТ ================== */
.main {
  flex:1;
  max-width:1400px;
  margin:2rem auto;
  padding:0 2rem;
  width:100%;
  opacity:0;
}
body.loaded .main {
  opacity:1;
}

/* Блок приветствия */
.welcome-section {
  text-align:center;
  margin-bottom:3rem;
  padding:1rem;

}
.welcome-section h1 {
  color:var(--accent-light);
  margin-bottom:1rem;
  font-size:2.5rem;
  font-weight:700;
  padding-left: 1rem;
}
.welcome-section p {
  color:#bdc3c7;
  font-size:1.2rem;
  max-width:600px;
  margin:0 auto;
}

.project-card-link {
  text-decoration: none;
  cursor:pointer;
  color: inherit;
}

/* Карточки проектов */
.projects-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
  gap:2rem;
  margin-bottom:3rem;
  margin-top: 1.5rem;
  min-height: 0;
}

.section-container {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 2.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 2.3s ease-in-out 0.1s,
              margin-bottom 0.3s ease-in-out;
  overflow: hidden;
}

.section-container.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
}

.subtitle{
  display: flex;
  padding: 1rem 2rem 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.project-image {
  height:280px;
  background:linear-gradient(45deg, #001933, #202973);
  display:flex;
  text-align: center;
  align-items:center;
  justify-content:center;
  font-size: 1.5rem;
  font-weight:600;
  border-radius: 16px;
}

.project-content {
  padding: 1rem 2rem 2rem 2rem;
}
.project-content h3 {
  color:#ecf0f1;
  margin-bottom:1rem;
  font-size:1.5rem;
  margin-top: 0px;
}
.project-content p {
  color:#bdc3c7;
  margin-bottom:2rem;
}

.button-default-stable {
  text-decoration:none;
  padding:1rem 2rem;
  letter-spacing: 0;

}

.button-default-stable:hover {
  transform:translateY(-2px);
  background:linear-gradient(135deg,var(--button-default-gradient-2), var(--button-default));
}

/* 📱 Адаптив для планшетов и телефонов */
@media (max-width: 1024px) {
  
    .welcome-section {
      padding: 2rem 1rem;
    }
  
    .welcome-section h1 {
      font-size: 2rem;
    }
  
    .welcome-section p {
      font-size: 1rem;
    }
  
    .projects-grid {
      grid-template-columns: 1fr; /* 👉 карточки в одну колонку */
    }
  
    .project-image {
      height: 200px;
      font-size: 1.3rem;
    }
  
    .project-content {
      padding: 1.5rem;
    }
  
    .btn-view {
      width: 100%;
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .welcome-section h1 {
      font-size: 1.6rem;
    }
  
    .project-content h3 {
      font-size: 1.2rem;
    }
  
    .project-content p {
      font-size: 0.9rem;
    }
  }