/* =========================================================
   09. СДЕЛАНО ПО ЗАКАЗУ / CUSTOM MADE
   ========================================================= */

.custom-slider {
  overflow: hidden;
}

.custom-slide__details dl {
  margin: 28px 0 0;
}

.custom-slide__details dl div {
  display: grid;
  grid-template-columns: minmax(82px, .8fr) 1.35fr;
  gap: 12px;
  margin-top: 8px;
}

.custom-slide__details dt,
.custom-slide__details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
}

.custom-slide__details dt {
  color: #777;
}

.custom-made__button {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.custom-made__button:hover {
  color: #fff;
  background: var(--accent);
}

.custom-made__controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

.custom-made {
  margin-top: var(--space-section-lg);
}

.custom-made__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--space-content);
}

.custom-made__header h3 {
  margin: 0;
  font-size: clamp(22px, 1.65vw, 30px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.1px;
}

.custom-made__status {
  display: flex;
  gap: 6px;
  min-width: 70px;
  justify-content: flex-end;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.custom-made__status-divider {
  opacity: .4;
}

.custom-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.custom-slider::-webkit-scrollbar {
  display: none;
}

.custom-slider__track {
  display: flex;
  gap: 30px;
  width: max-content;
}

.custom-slide {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(310px, .8fr);
  gap: clamp(38px, 4vw, 66px);
  width: min(1060px, calc(100vw - var(--sidebar-width) - var(--page-left-gap) - 120px));
  scroll-snap-align: start;
}

.custom-slide__visual {
  width: 100%;
  aspect-ratio: 1.26;
  margin: 0;
  overflow: hidden;
}

.custom-slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-slide__details {
  padding-top: 5px;
}

.custom-slide__details h4 {
  margin: 0;
  font-size: clamp(19px, 1.35vw, 24px);
  font-weight: 400;
}

.custom-slide__details dl {
  margin-top: var(--space-content);
}

.custom-slide__details dl div {
  grid-template-columns: 90px minmax(130px, 1fr);
}

.custom-made__button {
  width: min(100%, 260px);
  margin-top: var(--space-content);
}

.custom-made__controls {
  margin-top: var(--space-content);
}

/* --- (max-width: 1280px) --- */
@media (max-width: 1280px) {
  .custom-slide {
    grid-template-columns: minmax(430px, 1.25fr) minmax(280px, .75fr);
    width: min(900px, calc(100vw - var(--sidebar-width) - 70px));
  }
}

/* --- (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .custom-slide {
    grid-template-columns: minmax(390px, 1.15fr) minmax(260px, .85fr);
    width: min(820px, calc(100vw - 40px));
    gap: 34px;
  }
}

/* --- (max-width: 760px) --- */
@media (max-width: 760px) {
  .custom-made {
    margin-top: var(--space-section-lg);
  }

  .custom-made__header {
    align-items: center;
  }

  .custom-slide {
    grid-template-columns: 1fr;
    width: calc(100vw - 40px);
    gap: var(--space-content);
  }

  .custom-slide__visual {
    aspect-ratio: 1.2;
  }

  .custom-slide__details {
    padding: 0 2px 10px;
  }

  .custom-made__button {
    margin-top: var(--space-content);
    position: static;
    align-items: center;
  }
}

/* --- (max-width: 480px) --- */
@media (max-width: 480px) {
  .custom-made__header h3 {
    font-size: 24px;
  }


.custom-made__header h3 {
  min-width: 0;

  overflow-wrap: anywhere;
}


.custom-made__status {
  flex: 0 0 auto;
}

  .custom-slider {
    width: 100%;
    max-width: 100%;
  }

  .custom-slider__track {
    width: 100%;
  }

  .custom-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .custom-slide__visual {
    aspect-ratio: 1 / 1.05;
  }

  .custom-slide__details dl div {
    grid-template-columns: 92px 1fr;
  }
}

/* =========================================================
   ACTION BUTTONS — iOS FIX
   ========================================================= */

.custom-order-button,
.custom-made__button {
  color:
    var(--text, #0d0d0d) !important;

  -webkit-text-fill-color:
    var(--text, #0d0d0d);

  font-family:
    "Nata Sans",
    Arial,
    sans-serif;

  font-weight: 300;

  text-decoration: none !important;

  appearance: none;
  -webkit-appearance: none;

  -webkit-tap-highlight-color: transparent;
}


/* Safari link states */

.custom-order-button:link,
.custom-order-button:visited,
.custom-made__button:link,
.custom-made__button:visited {
  color:
    var(--text, #0d0d0d) !important;

  -webkit-text-fill-color:
    var(--text, #0d0d0d);
}
