/* ================================================
   PORTFOLIO PAGE — page-specific styles
   (shared tokens/header/footer live in style.css)
================================================ */

body { padding-top: 108px; }

/* ---------- LANG SWITCH ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-right: 24px;
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--ease);
}
.lang-switch button.active {
  background: var(--blue);
  color: #fff;
}
.lang-switch button:not(.active):hover { color: var(--ink); }

/* ---------- HERO ---------- */
.pf-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 48px 64px;
  text-align: center;
}
.pf-hero .kicker { justify-content: center; }
.pf-hero .kicker::before { display: none; }
.pf-hero .section-title { margin: 0 auto 18px; max-width: 760px; }
.pf-hero__sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- GRID ---------- */
.pf-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shl);
  border-color: transparent;
}
.pf-card__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg2);
  position: relative;
}
.pf-card__img img { transition: transform .5s ease; }
.pf-card:hover .pf-card__img img { transform: scale(1.045); }

.pf-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg2), var(--white));
}
.pf-card__img--placeholder span {
  font-family: var(--fh);
  font-size: 20px;
  color: var(--faint);
  text-align: center;
  padding: 0 24px;
}

.pf-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.pf-card__body h3 {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.pf-card__body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.pf-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--line);
  transition: color var(--ease), border-color var(--ease);
}
.pf-card__link svg { transition: transform var(--ease); flex-shrink: 0; }
.pf-card__link:hover { color: var(--blue); border-color: var(--blue); }
.pf-card__link:hover svg { transform: translate(2px, -2px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  body { padding-top: 96px; }
  .pf-hero { padding: 32px 24px 48px; }
}

@media (max-width: 767px) {
  .pf-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 64px;
    gap: 20px;
  }
  .pf-hero { padding: 28px 20px 40px; }
  .pf-hero .section-title { font-size: 28px; }
  .lang-switch { margin-right: 8px; }
}
