.manual {
    flex: 1;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 47px;
  margin-bottom: 142px;
  width: 100%;
}

.breadcrumbs {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 50px;
    padding-left: 5px;
}

.breadcrumbs a {
    color: #1a1a1a;
    text-decoration: none;
}

/* ===== Titles ===== */
.manual-title {
  text-align: center;
  font-size: 28px;
  font-family: Roboto !important;
  font-weight: 400 !important;
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: normal;
  padding: 0;
}

.manual-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
}

/* ===== Grid ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Планшеты */
@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Десктоп */
@media (min-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Карточки ===== */
.step {
  background-color: #ffffff1a;
  backdrop-filter: blur(4px);
  border-radius: 24px;
  padding: 0px 0 12px 0;
  border: 1px solid rgb(0 0 0 / 16%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .3s ease-in-out, transform 0.5s;
}

@media (hover: hover) and (pointer: fine) {
  .step:hover {
    transform: translateY(-5px);
    box-shadow: 0px 9px 7px 3px rgba(15, 34, 79, .14);
  }
}

/* ===== Badge ===== */
.step-badge {
  align-self: center;
  font-size: 12pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #334155;
  padding: 12px 14px 0px 14px;
}

/* ===== Картинки ===== */
.image-link {
  cursor: pointer;
}

.image-link img {
  width: 100%;
  border-radius: 24px;
}

/* ===== Описание ===== */
.step p {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0px 15px 0px 15px;
}

.step p i {
  color: #64748b;
  font-size: 13px;
}

.link-sber {
  color: #ef4444;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(239, 68, 68, 0.6);
  transition: color .2s ease, border-color .2s ease;
}

@media (hover: hover) {
  .link-sber:hover {
    color: #dc2626;
    border-bottom-color: rgba(220, 38, 38, 0.9);
  }
}




.carousel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e7e7e794;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.carousel-overlay.active {
  display: block;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  display: none;
  text-align: center;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
  border-radius: 24px;
}

.carousel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 10001;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10001;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.image-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
}

.steps-fade {
  position: relative;
  font-family: Roboto !important;
}

.steps-fade::before,
.steps-fade::after {
  display: none;
}

@media (max-width: 699px) {
  .steps-fade::before,
  .steps-fade::after {
    display: block;
  }
}

/* Градиенты */
.steps-fade::before,
.steps-fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 5;
}

.steps-fade::before {
  left: -15px;
  background: linear-gradient(
    to right,
    rgba(246,248,251,1),
    rgba(246,248,251,0.7),
    transparent
  );
}

.steps-fade::after {
  right: -15px;
  background: linear-gradient(
    to left,
    rgba(246,248,251,1),
    rgba(246,248,251,0.7),
    transparent
  );
}

/* Скролл ТОЛЬКО тут */
.steps-scroll {
  overflow-x: auto;
  margin-left: -15px;
  margin-right: -15px;
  padding: 5px 15px 10px 15px;
}

.steps-scroll::-webkit-scrollbar {
  display: none;
}


/* ===== Mobile horizontal steps ===== */
@media (max-width: 699px) {
  .container {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 20px 10px;
  }

  .breadcrumbs {
    padding: 0px 15px;
  }

  .manual-title {
    font-size: 22px;
    padding: 0px 10px;
  }

  .manual-subtitle {
    padding: 0px 10px;
    font-size: 14px;
    margin-bottom: 18px;
  }
  
  .steps-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 25px;
    padding-right: 15px;
  }

  .steps-grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding-right: 15px;

    scroll-snap-type: x mandatory;

    position: relative;
    z-index: 1;
  }

  .step {
    min-width: 65vw;
    max-width: 65vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .image-link img {
    border-radius: 20px;
  }

  .image-link:active img {
    transform: scale(0.98);
  }

  .carousel-prev,
  .carousel-next {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }

  .carousel-close {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}