.portfolio-page {
  background: #f7f8fc;
}

body:has(.portfolio-page) .main-nav {
  gap: clamp(10px, 1.15vw, 20px);
}

body:has(.portfolio-page) .main-nav .btn {
  margin-left: 8px;
  padding: 14px 18px;
}

.portfolio-page .page-hero.portfolio {
  padding: 58px 0 50px;
  background:
    radial-gradient(circle at 83% 25%, rgba(237, 16, 34, 0.18), transparent 18%),
    radial-gradient(circle at 76% 50%, rgba(128, 70, 255, 0.55), transparent 26%),
    linear-gradient(110deg, #061229 0%, #081a3c 48%, #190c30 100%);
}

.portfolio-page .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.portfolio-page .page-hero h1 {
  margin-top: 20px;
  color: #fff;
}

.portfolio-page .page-hero h1 em {
  background: linear-gradient(90deg, #b88cff, #ff3c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-page .page-hero p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.portfolio-page .hero-points {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.portfolio-page .hero-points span {
  min-width: 0;
  /*display: grid;*/
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.portfolio-page .hero-points span:last-child {
  border-right: 0;
}

.portfolio-page .icon-file {
  display: block;
  max-width: none;
  object-fit: contain;
}

.portfolio-page .hero-points .icon-file {
  width: 34px !important;
  height: 34px !important;
  padding: 7px;
  border-radius: 12px;
  background: rgba(237, 16, 34, 0.12);
  filter: invert(16%) sepia(97%) saturate(4239%) hue-rotate(344deg) brightness(110%) contrast(98%);
}

.portfolio-page .portfolio-visual {
  min-height: 360px;
  border-radius: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 72, 95, 0.18), transparent 17%),
    radial-gradient(circle at 63% 35%, rgba(103, 68, 255, 0.42), transparent 27%),
    linear-gradient(150deg, #061327, #10153b 52%, #3a1242);
  box-shadow: none;
}

.portfolio-page .portfolio-visual::before {
  inset: 54px 78px 70px;
  border: 12px solid #0a1027;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 76% 28%, #3452ff, transparent 12%),
    linear-gradient(140deg, #192550, #111936);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
}

.portfolio-page .portfolio-visual::after {
  right: 76px;
  bottom: 58px;
  box-shadow: 0 0 30px rgba(142, 80, 255, 0.72);
}

.portfolio-page .section.container {
  padding-top: 42px;
}

.portfolio-page .section-head {
  margin-bottom: 30px;
}

.portfolio-page .section-head h2 {
  color: #101629;
}

.portfolio-page .project-grid {
  gap: 24px;
}

.portfolio-page .project-card {
  overflow: hidden;
  border-radius: 12px;
  border-color: #e7eaf2;
  box-shadow: 0 14px 34px rgba(16, 22, 41, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portfolio-page .project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 16, 34, 0.22);
  box-shadow: 0 20px 48px rgba(16, 22, 41, 0.12);
}

.portfolio-page .project-media {
  height: 184px;
  border-radius: 12px 12px 0 0;
}

.portfolio-page .project-card .content {
  padding: 22px 22px 24px;
}

.portfolio-page .project-card h3 {
  margin: 12px 0 10px;
  color: #11172a;
  font-size: 20px;
  line-height: 1.3;
}

.portfolio-page .project-card p {
  min-height: 58px;
  margin: 0;
  color: #4f5b75;
  line-height: 1.58;
}

.portfolio-page .pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1f3;
  color: #ed1022;
  font-size: 12px;
  font-weight: 800;
}

.portfolio-page .project-card:nth-child(2) .pill,
.portfolio-page .project-card:nth-child(5) .pill {
  background: #f0edff;
  color: #5a31d6;
}

.portfolio-page .project-card:nth-child(3) .pill {
  background: #eef5ff;
  color: #155bd6;
}

.portfolio-page .project-card:nth-child(6) .pill {
  background: #eafaf1;
  color: #09914e;
}

.portfolio-page .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 20px;
}

.portfolio-page .tech-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8faff;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #edf0f7;
}

.portfolio-page .tech-list .icon-file {
  width: 17px !important;
  height: 17px !important;
  filter: invert(36%) sepia(88%) saturate(1639%) hue-rotate(198deg) brightness(95%) contrast(95%);
}

.portfolio-page .project-card:nth-child(1) .tech-list .icon-file,
.portfolio-page .project-card:nth-child(4) .tech-list .icon-file {
  filter: invert(52%) sepia(82%) saturate(2083%) hue-rotate(353deg) brightness(98%) contrast(94%);
}

.portfolio-page .project-card:nth-child(6) .tech-list .icon-file {
  filter: invert(43%) sepia(95%) saturate(543%) hue-rotate(101deg) brightness(90%) contrast(91%);
}

.portfolio-page .project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ed1022;
  font-size: 14px;
}

.portfolio-page .project-card:nth-child(2) a,
.portfolio-page .project-card:nth-child(5) a {
  color: #5a31d6;
}

.portfolio-page .project-card:nth-child(3) a {
  color: #155bd6;
}

.portfolio-page .project-card:nth-child(6) a {
  color: #09914e;
}

.portfolio-page .project-card a::after {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background: currentColor;
  mask: url("../../icons/arrow-right.svg") center / contain no-repeat;
}

.portfolio-client-strip {
  position: relative;
  margin-top: 26px;
  padding: 20px 22px 24px;
  overflow: hidden;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 22, 41, 0.06);
}

.portfolio-client-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(237, 16, 34, 0.08), transparent 20%),
    radial-gradient(circle at 84% 24%, rgba(92, 65, 255, 0.08), transparent 20%);
}

.portfolio-client-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.portfolio-client-head .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -4px;
}

.portfolio-client-head h2 {
  margin: 0;
  color: #101629;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.portfolio-client-controls {
  display: inline-flex;
  gap: 10px;
}

.portfolio-client-controls span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e8f1;
  border-radius: 50%;
  color: #49536c;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.portfolio-client-controls span:hover {
  border-color: #ed1022;
  color: #ed1022;
}

.portfolio-client-logos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-client-logos::-webkit-scrollbar {
  display: none;
}

.portfolio-client-logos span {
  flex: 0 0 auto;
  width: 160px;
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border: 1px solid #e7ebf3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(16, 22, 41, 0.04);
  scroll-snap-align: start;
}

.portfolio-client-logos img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.portfolio-page .cta-band {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-radius: 14px;
  /*background:
    radial-gradient(circle at 93% 78%, #ffffff 0 12px, transparent 13px),
    radial-gradient(circle at 86% 75%, rgba(255, 255, 255, 0.92) 0 30px, transparent 31px),
    radial-gradient(circle at 77% 84%, rgba(255, 255, 255, 0.92) 0 24px, transparent 25px),
    radial-gradient(circle at 92% 38%, rgba(237, 16, 34, 0.72), transparent 18%),
    linear-gradient(105deg, #101b53, #27116a 55%, #14327c);*/
}

/*.portfolio-page .cta-band::after {
  content: "";
  position: absolute;
  right: 86px;
  bottom: 26px;
  width: 54px;
  height: 86px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(160deg, #fff, #dfe7ff 62%, #ed1022 63%);
  transform: rotate(38deg);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.22);
}*/

.portfolio-page .cta-band > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .portfolio-page .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-client-logos span {
    width: 140px;
  }

  .portfolio-page .hero-points span:nth-child(2n) {
    border-right: 0;
  }

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

  .portfolio-client-controls {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .portfolio-page .page-hero.portfolio {
    padding: 36px 0;
  }

  .portfolio-page .hero-points {
    grid-template-columns: 1fr;
  }

  .portfolio-page .hero-points span {
    border-right: 0;
    padding: 8px 0;
  }

  .portfolio-client-strip {
    padding: 18px 14px;
  }

  .portfolio-client-logos span {
    width: 128px;
  }
}

