/* SWIPER */
.head-background {
    padding-left: 0;
    padding-right: 0;
}

.index-swiper.swiper-not-ready .swiper-slide {
    display: none;
}

.index-swiper.swiper-not-ready .swiper-slide:first-child {
    display: block;
}

.index-swiper,
.index-swiper .swiper-slide {
    height: calc(100vh - var(--content-top-mobile));
}

/* На мобильных вместо dvh -> svh, чтобы убрать скачки */
@supports (height: 100svh) {

    .index-swiper,
    .index-swiper .swiper-slide {
        height: calc(100svh - var(--content-top-mobile));
    }
}

.index-swiper .swiper-slide {
    position: relative;
}

.index-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* иногда убирает “щель” снизу */
}

.index-swiper-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 80%;
}

.index-swiper .swiper-button-prev,
.index-swiper .swiper-button-next {
    display: none;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.index-swiper .swiper-button-next:hover,
.index-swiper .swiper-button-prev:hover {
    color: floralwhite;
    cursor: pointer;
}

.index-swiper .swiper-button-prev {
    left: 1rem;
}

.index-swiper .swiper-button-next {
    right: 1rem;
}

.index-swiper .swiper-pagination {
    display: block;
}


/* HEAD IMAGE */
.index-swiper-title,
.index-swiper-subtitle {
    color: floralwhite;
    text-shadow: 2px 1px 6px rgb(0, 0, 0);
}

.index-swiper-title {
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
}

.index-swiper-subtitle {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.6rem);
    text-wrap: balance;
}

/* Hero actions: мобила — колонка */
.hero-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
}

.hero-actions .mybtn,
.button-wrapper .mybtn {
    width: 100%;
}


@media (min-width: 570px) {
    .index-swiper .swiper-pagination {
        display: none;
    }

    /* Hero actions: можно в ряд */
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero-actions .mybtn,
    .button-wrapper .mybtn {
        width: auto;
    }
}

/* Десктоп */
@media (min-width: 992px) {

    .index-swiper,
    .index-swiper .swiper-slide {
        height: calc(100vh - var(--content-top-desktop));
    }

    /* Десктопные тач-устройства / крупные планшеты */
    @supports (height: 100svh) {

        .index-swiper,
        .index-swiper .swiper-slide {
            height: calc(100svh - var(--content-top-desktop));
        }
    }
}

@media (min-width: 1025px) {

    .index-swiper .swiper-button-prev,
    .index-swiper .swiper-button-next {
        display: block;
    }
}

/* VIDEO */
.video-caption {
    margin-top: 0;
    margin-bottom: 3rem;
}

.video-caption h2 {
    margin-bottom: 0;
    color: #595c5f;
    text-wrap: balance;
}

.slide-top {
    opacity: 0;
    transform: translateY(200px);
}

.video-wrapper {
    position: relative;
}

/* отдельный слой-рамка, который режет картинку */
.video-frame {
    border-radius: 16px;
    overflow: hidden;
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* убирает скачок, пока видео не загрузилось */
    background: #000;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: 0;

    font-size: 32px;
    line-height: 1;

    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, .65);
}

.video-play-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .85);
    outline-offset: 3px;
}

.video-play-btn[hidden] {
    display: none !important;
}

@media (hover: none) and (pointer: coarse) {
    .video-play-btn {
        width: 96px;
        height: 96px;
        font-size: 36px;
    }
}

/* ABOUT */
/* Общий контейнер для блока about us */
.custom-container {
    background-color: #f7f6f1;
    margin-bottom: 0;
    padding: 0;
}

.custom-wrapper {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 2rem;
    align-items: end;

    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 8rem;
}

.image-container {
    width: 100%;
}

.image {
    width: 100%;
    /* Адаптивное изображение */
    height: auto;
}

.index-text-card-container {
    width: 100%;
    position: relative;
    right: auto;
    bottom: auto;

    /* вот это создаёт эффект "слегка наехало" */
    transform: translateY(20%);
    z-index: 10;
}

.index-text-card {
    width: 100%;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem gray;
    text-align: left;
}

/* Заголовки */
.index-card-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #6c757d;
    text-wrap: balance;
}

.index-card-text {
    text-align: justify;
    color: #939396;
    font-size: 1.2rem;
    font-weight: 600;
}

@media (min-width: 1400px) {
    .custom-wrapper {
        padding-bottom: 6rem;
    }
}

@media (min-width: 1001px) and (max-width: 1199px) {
    .custom-wrapper {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 2rem;
    }

    .image-container {
        display: block;
    }

    .index-text-card-container {
        transform: none;
    }

    .custom-container {
        margin-bottom: 3rem;
    }
}

/* На узких: один столбец, без наложения */
@media (max-width: 1000px) {
    .custom-wrapper {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 2rem;
    }

    .image-container {
        display: none;
    }

    .index-text-card-container {
        transform: none;
    }

    .custom-container {
        margin-bottom: 3rem;
    }
}

@media (max-width: 414px) {
    .index-text-card {
        padding: 1rem;
    }

    .index-card-text {
        font-size: 1rem;
        line-height: 1.625;
        /* означает 1.625 × font-size */
    }
}

/* WHOLESALE ORDER STEPS */
.wholesale-order-steps {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.wholesale-order-steps__head {
    max-width: 820px;
    margin: 0 auto 2rem;
}

.wholesale-order-steps__head h2 {
    margin-bottom: 1rem;
    color: #595c5f;
    font-weight: 700;
    text-wrap: balance;
}

.wholesale-order-steps__head p {
    margin-bottom: 0;
    color: #939396;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.wholesale-order-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.wholesale-order-step {
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(108, 117, 125, 0.18);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    min-height: 100%;
}

.wholesale-order-step__number {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background-color: #80a928;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.wholesale-order-step h3 {
    margin-bottom: 0.75rem;
    color: #595c5f;
    font-size: 1.1rem;
    font-weight: 700;
}

.wholesale-order-step p {
    margin-bottom: 0;
    color: #939396;
    font-weight: 600;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .wholesale-order-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .wholesale-order-steps__grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .wholesale-order-step {
        padding: 1.25rem 1rem;
    }
}