/* Portfolio page — 1920 → vw/% */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #F8F9FC;
  color: #0B1D36;
  min-height: 100vh;
}

.header-placeholder {
  width: 100%;
  height: 5.625vw;
  min-height: 60px;
  background: #0B1D36;
}

.page-hero {
  width: 100%;
  height: 9.844vw;
  min-height: 120px;
  background: #0B1D36;
  display: flex;
  align-items: center;
}
.page-hero__inner {
  width: 100%;
  padding-left: 5.677vw;
  display: flex;
  align-items: flex-start;
  gap: 2.45vw;
}
.page-hero__back {
  width: 2.604vw;
  height: 2.604vw;
  min-width: 40px;
  min-height: 40px;
  background: rgba(29, 78, 144, 0.5);
  border-radius: 0.417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.page-hero__back:hover { background: rgba(29, 78, 144, 0.8); }
.page-hero__back svg { width: 2.083vw; height: 2.083vw; min-width: 28px; }
.page-hero__breadcrumb {
  font-weight: 500;
  font-size: 0.729vw;
  color: rgba(232, 240, 254, 0.7);
  margin-bottom: 0.6vw;
}
.page-hero__title {
  font-weight: 700;
  font-size: 2.5vw;
  color: #E8F0FE;
}
.page-hero__subtitle {
  font-weight: 500;
  font-size: 1.25vw;
  color: #E8F0FE;
  margin-top: 0.3vw;
}

.portfolio-main {
  max-width: 78vw;
  margin: 0 auto;
  padding: 3.2vw 5vw 5vw;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.83vw;
  margin-bottom: 2.6vw;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.938vw;
  padding: 0.625vw 1.46vw;
  min-height: 40px;
  border: 1px solid #E5E9F1;
  border-radius: 2vw;
  background: #FFFFFF;
  color: #0B1D36;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover {
  border-color: #1D4E90;
  color: #1D4E90;
}
.filter-btn--active {
  background: #1D4E90;
  border-color: #1D4E90;
  color: #FFFFFF;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.08vw;
}

.portfolio-card {
  background: #FFFFFF;
  border: 1px solid #E5E9F1;
  border-radius: 0.521vw;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.3s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11, 29, 54, 0.12);
}
.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card__image {
  height: 11.46vw;
  min-height: 140px;
  background: #EBF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__body {
  padding: 1.46vw 1.56vw 1.77vw;
}

.portfolio-card__tag {
  display: inline-block;
  font-size: 0.729vw;
  font-weight: 500;
  color: #1D4E90;
  background: rgba(29, 78, 144, 0.08);
  padding: 0.25vw 0.73vw;
  border-radius: 0.3vw;
  margin-bottom: 0.6vw;
}

.portfolio-card__title {
  font-weight: 700;
  font-size: 1.25vw;
  color: #0B1D36;
  margin-bottom: 0.4vw;
}

.portfolio-card__desc {
  font-weight: 400;
  font-size: 0.833vw;
  line-height: 1.4;
  color: rgba(11, 29, 54, 0.7);
}

/* ========== FOOTER (shared) ========== */
.footer {
  width: 100%;
  min-height: 7.344vw;
  background: #0B1D36;
  padding: 3vw 7.81vw 2.5vw;
  color: #E8F0FE;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 2.5vw 3vw;
  align-items: start;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}
.footer__logo {
  width: 3.2vw;
  height: 3.2vw;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer__logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(232, 240, 254, 0.35);
}
.footer__logo:active { transform: scale(0.96); }
.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer__tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.75);
  max-width: 18vw;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vw 1.6vw;
  align-content: flex-start;
}
.footer__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__link:hover { opacity: 0.75; }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}
.footer__contact {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__contact:hover { opacity: 0.75; }
.footer__copyright {
  grid-column: 1 / -1;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.55);
  margin-top: 1vw;
  padding-top: 1.2vw;
  border-top: 1px solid rgba(232, 240, 254, 0.12);
}
@media (max-width: 1024px) {
  .footer { padding: 32px 24px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__tagline { font-size: 14px; max-width: none; }
  .footer__nav { gap: 12px 20px; }
  .footer__link, .footer__contact { font-size: 15px; }
  .footer__copyright { font-size: 13px; margin-top: 8px; padding-top: 16px; }
}

@media (max-width: 1024px) {
  .page-hero { height: auto; padding: 16px 0; }
  .page-hero__title { font-size: 28px; }
  .page-hero__subtitle { font-size: 16px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .filter-btn { font-size: 14px; padding: 8px 16px; }
  .portfolio-card__title { font-size: 18px; }
  .portfolio-card__desc { font-size: 14px; }
  .portfolio-card__tag { font-size: 12px; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-main { padding: 24px 16px; }
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card { cursor: pointer; }
.portfolio-card--open .portfolio-card__desc {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
}
