.portfolio-wrapper {
  padding: 10px 20px 80px;
  position: relative;
}

.portfolio-container {
  max-width: 1290px;
  margin: 0 auto;
  position: relative;
}

.action {
  width: 240px;
}

.breadcrumb {
  line-height: 17px;
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 13px;
  font-weight: 500;
  color: rgba(96, 96, 96, 1);
}

.breadcrumb__link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.breadcrumb__link:hover {
  color: rgba(149, 129, 237, 1);
}

.breadcrumb__sep {
  margin: 0 8px;
  color: rgba(0, 0, 0, 1);
}

.breadcrumb__link--current {
  color: rgba(149, 129, 237, 1);
}

.portfolio-header {
  padding-right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.portfolio-title {
  line-height: 1;
  font-size: 52px;
  font-weight: 600;
  color: #323232;
  margin-top: 43px;
  margin-bottom: 56px;
}

.see-all-button {
  background: #2c2c2c;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==== Фильтры ==== */
.portfolio-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-filter {
  padding: 13px 21px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter:hover {
  border-color: #b8b8b8;
}

.portfolio-filter.active {
  background: linear-gradient(90deg, #917eec 0%, #d9b1fe 100%);
  color: white;
  border: none;
  font-weight: 500;
  padding-left: 56px;
  position: relative;
}

.portfolio-filter.active::before {
  content: url("../assets/imgs/Check.png");
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.portfolio-section {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

/* ==== Слайдер ==== */
.portfolio-slider {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-start;
}

.portfolio-slider-item {
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.portfolio-slider-item .active {
  z-index: 2;
  transform-origin: top;
}

.portfolio-slider img {
  width: 100%;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s,
    z-index 0s;
  display: block;
}

.portfolio-slider-wrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  overflow: visible;
}

.slider-controls {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
  position: relative;
  padding-top: 100px;
  z-index: 3;
}

.slider-controls-left {
  display: flex;
  gap: 12px;
  pointer-events: all;
  margin-left: auto;
}

/* Точки */
.slider-dots {
  display: flex;
  gap: 10px;
}

/* базовая точка */
.slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: rgba(220, 211, 234, 1);
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dots span.active {
  background: #987bee;
  width: 30px;
  border-radius: 30px;
}

.slider-dots span.active.to-right {
  margin-right: 5px;
}

.slider-dots span.active.to-left {
  margin-left: 5px;
}

.slider-prev,
.slider-next {
  background: none;
  border: none;
  transform: none;
  padding: 8px;
  cursor: pointer;
}

.slider-prev svg path {
  stroke: rgba(55, 55, 55, 1);
}

.slider-prev:hover svg path,
.slider-next:hover svg path {
  stroke: rgba(180, 163, 255, 1);
}

/*Название секции*/
.title_section {
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  color: rgba(0, 0, 0, 0.8);
  margin-top: 56px;
  margin-bottom: 32px;
}

/*Правая часть секции*/
.mobile-project__wrap {
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1290px;
  margin-bottom: 56px;
}

.mobile-project__wrap p {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.mobile-project__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}

.mobile-project__title {
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: rgba(0, 0, 0, 0.8);
  margin: 0;
}

.mobile-project__info .action {
  min-width: 100%;
}

.mobile-project__info .main-btn {
  min-width: 100%;
}

.mobile-project__info .text_section {
  color: rgba(152, 131, 238, 1);
}

.mobile-filter-toggle,
.mobile-filter-panel {
  display: none;
}

.mobile-filter-toggle {
  width: 100%;
  text-align: center;
}

.mobile-filter-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px 10px 30px;
  background-color: rgba(55, 55, 55, 1);
  border: none;
  border-radius: 999px;
  color: rgba(255, 255, 255, 1);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-filter-toggle button {
  width: 100%;
}

.mobile-filter-toggle button span {
  flex: 1;
  text-align: left;
  line-height: 1.25;
}

.mobile-filter-toggle button img {
  background: rgba(255, 255, 255, 1);
  padding: 8.5px;
  border-radius: 100px;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  flex-shrink: 0;
}

.mobile-filter-panel {
  position: fixed;
  top: 60%;
  left: 50%;
  margin-top: 50px;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 320px;
  background: rgba(235, 235, 235, 1);
  border-radius: 20px;
  padding: 16px;
  z-index: 1000;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

.mobile-filter-panel .filter-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-filter-panel .filter-label {
  font-size: 20px;
  line-height: 28px;
  color: rgba(0, 0, 0, 1);
  font-weight: 600;
}

#mobile-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

#mobile-filter-overlay.hidden {
  display: none;
}

.mobile-filter-panel input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: rgba(252, 252, 252, 1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.mobile-filter-panel .filter-checkbox:checked {
  border: none;
  background-image: url("../assets/imgs/Check.png"),
    linear-gradient(135deg,
      rgba(145, 126, 236, 1) 0%,
      rgba(217, 177, 254, 1) 70%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 21px 21px, cover;
}

.mobile-filter-panel .filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1250px) {
  .portfolio-wrapper {
    padding: 10px 15px 80px;
  }

  .mobile-project__wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0;
  }

  .title_section {
    margin-bottom: 30px;
  }

  .portfolio-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .portfolio-slider {
    margin: 0 auto;
  }

  .mobile-project__info {
    display: contents;
  }

  .mobile-project__title,
  .mobile-project__info>p {
    order: 1;
    width: 100%;
  }

  .mobile-project__title {
    font-size: 28px;
  }

  .portfolio-slider-wrapper {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .slider-controls {
    order: 3;
    margin-top: 42px;
    display: flex;
    justify-content: center;
  }

  .slider-controls-left {
    margin-right: 150px;
  }

  .mobile-project__info .action {
    order: 4;
    align-self: center;
  }
}

@media (max-width: 900px) {
  .portfolio-slider-wrapper {
    width: 100vw;
    margin-top: 56px;
    margin-left: calc(-50vw + 50%);

    position: relative;
  }

  .portfolio-slider {
    overflow-x: visible;
  }

  body,
  html {
    overflow-x: hidden;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .main-btn {
    line-height: 15px;
  }

  .mobile-project__wrap p {
    font-size: 16px;
    line-height: 24px;
  }

  .mobile-project__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
  }

  .portfolio-title {
    font-size: 30px;
    line-height: 29px;
    margin-bottom: 40px;
  }

  .title_section {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    color: rgba(0, 0, 0, 0.8);
    margin: 40px 0 16px 0;
  }

  .mobile-project__wrap {
    flex-direction: column;
    margin-bottom: 0;
  }

  .portfolio-section {
    gap: 8px;
  }

  .desktop-only {
    display: none;
  }

  .portfolio-slider {
    gap: 0;
  }

  .portfolio-slider {
    display: flex;
    overflow: visible;
    transition: transform 0.3s ease;
  }

  .slider-controls-left {
    display: none;
  }

  .portfolio-slider-item {
    transform-origin: top;
    transition: transform 0.3s ease, filter 0.3s ease, margin 0.3s ease;
    margin-left: 30px;
  }

  .portfolio-slider-item img {
    display: block;
    width: 333px;
    height: auto;
  }

  .portfolio-slider-item.prev {
    margin-left: 30px;
  }

  .portfolio-slider-item.next {
    margin-left: 30px;
  }

  .portfolio-slider-item .active {
    transform: none;
    box-shadow: none;
  }

  .portfolio-slider-item.active {
    /* transform: scale(1.4); */
    filter: brightness(1);
    z-index: 2;
  }

  .portfolio-slider-item.dimmed {
    transform: scale(0.9);
    filter: brightness(0.6);
  }

  .slider-dots {
    display: flex;
    justify-content: center;
  }

  .dot.active {
    background: #7348e6;
  }

  .action {
    margin-top: 24px;
  }

  .portfolio-slider-item.prev img,
  .portfolio-slider-item.next img {
    /* filter: grayscale(100%) brightness(0.7); */
  }

  .portfolio-slider-item.dimmed img {
    /* filter: brightness(0.6); */
  }

  .mobile-filter-toggle {
    display: block;
  }

  .mobile-filter-panel {
    display: block;
  }

  .mobile-filter-panel.hidden {
    display: none;
  }
}


.portfolio-another-content {
  position: relative;
}

.portfolio-another-content__image {
  position: absolute;
  top: 40%;
  left: 50%;
}

.portfolio-tg-content {
  display: flex;
  flex-direction: row;
  background-color: rgba(159, 143, 238, 0.2);
  border-radius: 40px;
  justify-content: space-between;
  height: 100%;
  padding: 20px 100px 20px 100px;
  overflow: visible;
  width: 100%;

}

.portfolio-tg-content::before {
  opacity: 0.2;
}

.portfolio-tg-content__images {
  position: relative;
}

.portfolio-tg-content__text {
  padding: 40px;
}

.portfolio-tg-content__image {
  position: absolute;
  top: 15%;
  left: 74%;
}

.portfolio-slider-item__footer-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0px;
}

.portfolio-slider-item__footer-desc {
  font-size: 18px !important;
  font-weight: 400 !important;
  margin-top: 10px;
  margin-bottom: 20px;
}




.portfolio-slider-item__footer-link {
  font-size: 18px;
  font-weight: 600;
  color: rgba(119, 91, 255, 1);
  display: flex;
  column-gap: 8px;
  align-items: center;
}

.portfolio-slider-item__footer-link img {
  width: 13px;
  height: 9px;
}


.portfolio-tg-content__text .mobile-project__info {
  max-width: 600px;
  row-gap: 50px;
}

.portfolio-tg-content__text .mobile-project__info .main-btn {
  max-width: 300px;
  min-width: 200px;
}

.portfolio-slider-item__footer {
  padding: 20px;
}

/* 
.portfolio-slider-item {
  background: rgba(255, 255, 255, 1);
  border-radius: 20px;
  flex: 0 0 170px;
  position: relative;
  margin-left: 15px;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}


.portfolio-slider-item__footer {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  margin-top: 10px;
} */

.portfolio-tg-content__main-image {
  width: 215px;
}

.portfolio-tg-content__image {
  width: 205px;
}

.portfolio-another-content__main-image {
  width: 660px;
}

.portfolio-another-content__image {
  width: 500px;
}

@media screen and (min-width: 768px) {
  .slider-controls {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-another-content__main-image {
    width: 230px;
    height: 184px;
    margin-left: 0px;
  }

  .portfolio-another-content__image {
    width: 208px;
    height: 142px;
    left: 28%;
    top: 28%;
  }

  .portfolio-tg-content {
    background-color: rgba(255, 255, 255, 1);
    flex-direction: column;
    padding: 0px;

  }

  .portfolio-tg-content__image {
    left: 33%;
  }

  .portfolio-tg-content__text {
    padding: 0px;
    margin-top: 50px;
  }
}