﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  color: #1f2640;
}

.project-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.project-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.project-back {
  color: #0A66C2;
  font-weight: 700;
  text-decoration: none;
  order: -1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(48, 48, 236, 0.12);
  color: #0A66C2;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.project-page-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.project-page-header p {
  margin: 16px 0 0;
  max-width: 720px;
  color: #4a557a;
  line-height: 1.8;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(48, 48, 236, 0.08);
  color: #1f2640;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(48, 48, 236, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(48, 48, 236, 0.16);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 22px;
}

.project-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #12172f;
}

.project-card-body p {
  margin: 0 0 18px;
  color: #5d667f;
  line-height: 1.7;
}

.project-card-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0A66C2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-card-body a:hover {
  background: #084b96;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-page {
    padding: 24px 16px 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 220px;
  }
}
