@import "../../shared/variables.css";
@import "../../shared/reset.css";
@import "../../shared/layout.css";
@import "../../shared/typography.css";
@import "../../shared/buttons.css";
@import "../../shared/modal.css";
@import "../../shared/animations.css";
@import "../home/blocks/header.css";
@import "../catalog/blocks/hero.css";
@import "./blocks/logistics.css";
@import "./blocks/payment.css";
@import "./blocks/credit.css";
@import "./blocks/process.css";
@import "../home/blocks/cta-request.css";
@import "../home/blocks/footer.css";

.delivery-page {
  background: var(--color-paper);
}

.delivery-page__hero-line {
  display: block;
}

.delivery-page__hero-actions {
  display: none;
}

.delivery-page__hero-button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
  transition: transform var(--transition-hover);
}

.delivery-page__hero-placeholder-label,
.delivery-page__hero-badge {
  display: none;
}

@media (min-width: 1024px) {
  .delivery-page .catalog-hero__container {
    padding-top: 116px;
  }

  .delivery-page .catalog-hero__layout {
    grid-template-columns: minmax(0, 560px) minmax(520px, 1fr);
    gap: 22px;
    align-items: end;
    padding-top: 22px;
    padding-bottom: 44px;
  }

  .delivery-page .catalog-hero__content {
    width: 100%;
    max-width: 560px;
  }

  .delivery-page .catalog-hero__title {
    max-width: 560px;
    margin-top: 18px;
    font-size: clamp(52px, 5vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.015em;
  }

  .delivery-page .catalog-hero__text {
    max-width: 540px;
    margin-top: 22px;
    color: rgb(255 255 255 / 68%);
    font-size: clamp(15px, 1.38vw, 19px);
    line-height: 1.5;
  }

  .delivery-page__hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 28px;
  }

  .delivery-page__hero-button {
    min-height: 56px;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .delivery-page__hero-button:hover .delivery-page__hero-button-icon,
  .delivery-page__hero-button:focus-visible .delivery-page__hero-button-icon {
    transform: translateX(4px);
  }

  .delivery-page__hero-button--ghost {
    border: 1.5px solid rgb(255 255 255 / 26%);
    background: transparent;
    color: var(--color-paper);
  }

  .delivery-page__hero-actions .delivery-page__hero-button:first-child {
    min-width: 258px;
  }

  .delivery-page__hero-actions .delivery-page__hero-button:last-child {
    min-width: 268px;
  }

  .delivery-page__hero-button--ghost:hover,
  .delivery-page__hero-button--ghost:focus-visible {
    border-color: rgb(255 255 255 / 54%);
    background: transparent;
    color: var(--color-paper);
  }

  .delivery-page .catalog-hero__media {
    align-self: end;
    justify-self: end;
    width: min(100%, 570px);
    min-height: 420px;
    height: 400px;
    overflow: visible;
    background:
      repeating-linear-gradient(
        135deg,
        rgb(255 255 255 / 0.04) 0 2px,
        transparent 2px 16px
      ),
      linear-gradient(180deg, #171a1f 0%, #13161a 100%);
  }

  .delivery-page .catalog-hero__image {
    opacity: 1;
    pointer-events: auto;
    object-position: center;
  }

  .delivery-page .catalog-hero__media-border {
    width: 6px;
  }

  .delivery-page .catalog-hero__media-mark {
    top: 28px;
    left: 22px;
  }

  .delivery-page__hero-placeholder-label {
    display: none;
  }

  .delivery-page__hero-badge {
    position: absolute;
    left: -52px;
    bottom: 32px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    width: auto;
    max-width: 280px;
    padding: 24px 26px 20px;
    background: var(--color-red);
    color: var(--color-paper);
  }

  .delivery-page__hero-badge-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
  }

  .delivery-page__hero-badge-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .delivery-page .catalog-hero__stats {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1299.98px) {
  .delivery-page__hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .delivery-page__hero-actions .delivery-page__hero-button:first-child,
  .delivery-page__hero-actions .delivery-page__hero-button:last-child {
    min-width: 0;
  }
}

@media (min-width: 690px) and (max-width: 1023.98px) {
  .delivery-page .catalog-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    gap: 16px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 86px;
  }

  .delivery-page .catalog-hero__content,
  .delivery-page .catalog-hero__title,
  .delivery-page .catalog-hero__text {
    width: auto;
    max-width: none;
  }

  .delivery-page__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

  .delivery-page__hero-button {
    min-height: 52px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .delivery-page__hero-button--ghost {
    border: 1.5px solid rgb(255 255 255 / 26%);
    background: transparent;
    color: var(--color-paper);
  }

  .delivery-page .catalog-hero__media {
    min-height: 240px;
    height: 100%;
    overflow: visible;
  }

  .delivery-page__hero-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    width: min(100%, 260px);
    padding: 18px 20px 16px;
    background: var(--color-red);
    color: var(--color-paper);
    text-align: center;
    transform: translate(-50%, 50%);
  }

  .delivery-page__hero-badge-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: none;
  }

  .delivery-page__hero-badge-text {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
  }
}

@media (max-width: 689.98px) {
  .delivery-page .catalog-hero__layout {
    padding-bottom: 76px;
  }

  .delivery-page .catalog-hero__media {
    overflow: visible;
  }

  .delivery-page__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(100%, 320px);
    margin: 24px auto 0;
  }

  .delivery-page__hero-button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .delivery-page__hero-button--ghost {
    border: 1.5px solid rgb(255 255 255 / 26%);
    background: transparent;
    color: var(--color-paper);
  }

  .delivery-page__hero-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    width: min(100%, 204px);
    padding: 14px 16px 12px;
    background: var(--color-red);
    color: var(--color-paper);
    text-align: center;
    transform: translate(-50%, 50%);
  }

  .delivery-page__hero-badge-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: none;
  }

  .delivery-page__hero-badge-text {
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.3;
  }
}

@media (min-width: 485px) and (max-width: 689.98px) {
  .delivery-page .catalog-hero__title {
    max-width: none;
    font-size: clamp(42px, 7vw, 56px);
    line-height: 1;
  }

  .delivery-page__hero-line {
    display: inline;
  }

  .delivery-page__hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(100%, 360px);
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
  }

  .delivery-page__hero-button {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
}

@media (min-width: 690px) and (max-width: 768px) {
  .delivery-page__hero-actions {
    justify-content: center;
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
  }

  .delivery-page__hero-button {
    width: 100%;
  }
}
