.complete-portfolio {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.portfolio-nav {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(14, 49, 92, 0.12);
  border-radius: 24px;
  background: #f5f8f4;
}

.portfolio-nav > p {
  margin: 0 0 0.85rem;
  color: #12345d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-nav > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.portfolio-nav a {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(14, 49, 92, 0.11);
  border-radius: 14px;
  background: #fff;
  color: #12345d;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-nav a:hover,
.portfolio-nav a:focus-visible {
  border-color: #35ad25;
  box-shadow: 0 8px 24px rgba(14, 49, 92, 0.1);
  transform: translateY(-2px);
}

.portfolio-nav a span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #35ad25;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(3rem, 7vw, 6rem) 0 1.5rem;
}

.portfolio-intro h2 {
  max-width: 750px;
  margin: 0.25rem 0 0;
  color: #0d2e57;
  font-size: clamp(2rem, 4.3vw, 3.7rem);
  line-height: 1.02;
}

.portfolio-intro > p {
  margin: 0;
  color: #496078;
  line-height: 1.7;
}

.portfolio-category {
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1.25rem;
  border: 1px solid rgba(14, 49, 92, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(17, 51, 89, 0.06);
  scroll-margin-top: 100px;
}

.portfolio-category__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(14, 49, 92, 0.1);
}

.portfolio-category__number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #0d2e57;
  color: #fff;
  font-weight: 850;
}

.portfolio-category__eyebrow {
  margin: 0 0 0.25rem;
  color: #35ad25;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-category__header h3 {
  margin: 0;
  color: #0d2e57;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.portfolio-category__header div > p:last-child {
  max-width: 720px;
  margin: 0.35rem 0 0;
  color: #5a6f84;
  line-height: 1.55;
}

.portfolio-category__count {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #e9f6e6;
  color: #247d1a;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.portfolio-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
}

.portfolio-product {
  display: flex;
  min-height: 440px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(14, 49, 92, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(13, 46, 87, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-product:hover {
  border-color: rgba(53, 173, 37, 0.5);
  box-shadow: 0 16px 34px rgba(13, 46, 87, 0.1);
  transform: translateY(-3px);
}

.portfolio-product__visual {
  position: relative;
  display: grid;
  height: 230px;
  flex: 0 0 230px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid rgba(14, 49, 92, 0.08);
  background:
    radial-gradient(circle at 50% 40%, rgba(53, 173, 37, 0.1), transparent 46%),
    #f3f6f4;
}

.portfolio-product__visual > img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px) !important;
  max-width: none;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
}

.portfolio-product__drawing {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 46, 87, 0.08);
}

.portfolio-product__drawing svg {
  width: 88px;
  height: 88px;
  fill: none;
  stroke: #26951c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-product__check {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #35ad25;
  box-shadow: 0 7px 18px rgba(13, 46, 87, 0.2);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.portfolio-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.portfolio-product__index {
  color: #26951c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portfolio-product h4 {
  margin: 0.45rem 0 0;
  color: #102f57;
  font-size: 1.12rem;
  line-height: 1.2;
}

.portfolio-product p {
  margin: 0.45rem 0 0;
  color: #607386;
  font-size: 0.86rem;
  line-height: 1.5;
}

.portfolio-product__body > a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.2rem;
  color: #102f57;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.portfolio-product__body > a span {
  color: #35ad25;
  font-size: 1rem;
}

.portfolio-product__body > a:hover,
.portfolio-product__body > a:focus-visible {
  color: #26951c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portfolio-category__quote {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1.3rem;
  color: #218219;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.portfolio-category__quote:hover,
.portfolio-category__quote:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portfolio-custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
  border-radius: 28px;
  background: #0d2e57;
  color: #fff;
}

.portfolio-custom__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #35ad25;
  font-size: 1.6rem;
  font-weight: 900;
}

.portfolio-custom p {
  margin: 0 0 0.2rem;
  color: #7edc70;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-custom h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.portfolio-custom span {
  display: block;
  margin-top: 0.35rem;
  color: #cbd8e5;
  font-size: 0.86rem;
}

.portfolio-custom .button {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .portfolio-nav > div,
  .portfolio-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-custom {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portfolio-custom .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .portfolio-nav > div,
  .portfolio-products {
    grid-template-columns: 1fr;
  }

  .portfolio-category__header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portfolio-category__count {
    grid-column: 2;
    justify-self: start;
  }

  .portfolio-product,
  .portfolio-product:nth-child(2n),
  .portfolio-product:nth-child(3n) {
    min-height: 420px;
  }

  .portfolio-product__visual {
    height: 215px;
    flex-basis: 215px;
  }

  .portfolio-custom {
    grid-template-columns: 1fr;
  }

  .portfolio-custom .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-nav a,
  .portfolio-product {
    transition: none;
  }
}
