/* ==========================================
   ЛД Великдень — Спецпроект "Львівські дріжджі"
   ========================================== */

/* Загальні */
.ld-page {
    font-family: 'Rubik', sans-serif;
    color: #3C3B3A;
    overflow-x: hidden;
}

.ld-page * {
    box-sizing: border-box;
}

/* ==========================================
   БЛОК 1: Hero Banner
   ========================================== */
.ld-hero {
    width: 1306px;
    margin: 20px auto 0;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.ld-hero-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

.ld-hero-banner.mobile {
    display: none;
}

.ld-hero-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 1228px;
    padding: 0 40px;
}

.ld-hero-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 88px;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    margin: 0;
    text-transform: none;
    font-style: italic;
}

.ld-hero-subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 10px 0 0;
}

/* ==========================================
   БЛОК 2: Про проєкт
   ========================================== */
.ld-about {
    width: 1306px;
    margin: 30px auto 0;
    background-color: #FFFFFF;
    border-radius: 70px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.ld-about-tag {
    display: inline-block;
    background-color: #00892D;
    color: #FFFFFF;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 0.8em;
    padding: 15px;
    border-radius: 100px;
    text-transform: none;
}
.ld-about-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: #3C3B3A;
    margin: 0;
}

.ld-about-description {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: #3C3B3A;
    margin-top: -22px;
}

/* ==========================================
   БЛОК 3: Найкращі рецепти пасок
   ========================================== */
.ld-recipes {
    width: 1306px;
    margin: 30px auto 0;
    background-color: #F5EBDF;
    border-radius: 28px;
    position: relative;
}

.ld-recipes-container {
    padding: 50px 0 50px 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.ld-recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.ld-recipes-title-block {
    flex-shrink: 0;
}

.ld-recipes-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1em;
    letter-spacing: -1%;
    color: #3C3B3A;
    margin: 0;
}

.ld-recipes-description-block {
    max-width: 610px;
    width: 580px;
}

.ld-recipes-description {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4em;
    color: #333;
    margin: 0 0 20px;
}

.ld-button {
    display: inline-block;
    background-color: #E52721;
    border: none;
    border-radius: 100px;
    padding: 23px 26px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.ld-button:hover {
    background-color: #C41E1E;
    color: #FFFFFF;
    text-decoration: none;
}

/* Cards grid */
.ld-recipes-cards {
    display: flex;
    gap: 20px;
    width: 100%;
}

.ld-card-large {
    position: relative;
    width: 400px;
    max-height: 530px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.ld-card-large .ld-card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.ld-card-large .ld-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    border-radius: 0 0 20px 20px;
}

.ld-card-body {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #FFFFFF;
    border-radius: 28px;
    padding: 18px 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.ld-card-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2em;
    letter-spacing: -0.3px;
    color: #3C3B3A;
    margin: 0;
}

.ld-card-arrow {
    width: 48px;
    height: 48px;
    background-color: #E52721;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ld-card-arrow:hover {
    background-color: #C41E1E;
}

.ld-card-arrow::after {
    content: '';
    width: 20px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20' fill='none'%3E%3Cpath d='M2 10H22M22 10L14 2M22 10L14 18' stroke='%23FFFFFF' stroke-width='2.44' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.ld-card-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 5px;
    z-index: 3;
}

.ld-tag {
    background-color: #00892D;
    border-radius: 100px;
    padding: 10px 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2em;
    color: #FFFFFF;
}

/* Small cards slider */
.ld-cards-small-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.ld-cards-slider {
    width: 100%;
    height: 503px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.ld-cards-slider:active {
    cursor: grabbing;
}

.ld-cards-slider::-webkit-scrollbar {
    display: none;
}

.ld-cards-track {
    display: flex;
    gap: 20px;
    height: 530px;
    min-width: max-content;
}

.ld-card-small {
    position: relative;
    width: 332px;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.ld-card-small .ld-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.ld-card-small .ld-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    border-radius: 0 0 20px 20px;
}

.ld-card-small .ld-card-body {
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.ld-card-small .ld-card-title {
    font-size: 18px;
}

.ld-card-small .ld-card-arrow {
    width: 42px;
    height: 42px;
}

/* Slider progress bar */
.ld-slider-progress {
    position: relative;
    width: 100%;
    height: 12px;
}

.ld-slider-track {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FFFDFB;
    border-radius: 100px;
    border: 1px solid #E8E8E8;
}

.ld-slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 12px;
    background-color: #E52721;
    border-radius: 1000px;
    transition: left 0.3s ease;
    cursor: pointer;
    z-index: 10;
    touch-action: none;
}

.ld-slider-thumb:hover {
    background-color: #C41E1E;
    transform: scaleY(1.1);
}

/* Mobile-first card (hidden on desktop, visible in slider on mobile) */
.ld-card-mobile-first {
    display: none;
}

/* Bottom button (mobile only) */
.ld-recipes-bottom-button {
    display: none;
    text-align: center;
    padding: 0 20px;
}

/* ==========================================
   БЛОК 4: Статті + Поради (двоколонковий)
   ========================================== */
.ld-content-grid {
    width: 1306px;
    margin: 30px auto 0;
    display: flex;
    gap: 30px;
}

/* Ліва колонка — Статті */
.ld-articles-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ld-article-card {
    background: #FFFFFF;
    border-radius: 28px;
    overflow: hidden;
}
.ld-article-body {
    padding: 20px;
}
.ld-article-image-wrap {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
}

.ld-article-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ld-article-image-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: #00892D;
    border-radius: 100px;
    padding: 8px 12px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1em;
    color: #FFFFFF;
    z-index: 2;
}

.ld-article-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3em;
    color: #3C3B3A;
    margin: 0 0 8px;
}

.ld-article-excerpt {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #666;
    margin: 0 0 12px;
}

.ld-article-link {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1em;
    color: #E52721;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.ld-article-link:hover {
    color: #C41E1E;
}

.ld-article-link::after {
    content: '>';
    font-size: 16px;
}

/* Права колонка — Поради, Декор, Відео */
.ld-sidebar-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ld-sidebar-block {
    background: #F5EBDF;
    border-radius: 28px;
    padding: 32px 0 32px 32px;
    overflow: hidden;
}

.ld-sidebar-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3em;
    color: #3C3B3A;
    margin: 0 0 4px;
    padding-right: 20px;
}

.ld-sidebar-subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #3C3B3A;
    margin: 0 0 12px;
    padding-right: 20px;
    letter-spacing: -2%;
}

/* Mini carousel inside sidebar */
.ld-mini-carousel {
    position: relative;
    margin-top: 24px;
}

.ld-mini-carousel-viewport {
    overflow: hidden;
}

.ld-mini-carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.ld-mini-carousel-item {
    flex-shrink: 0;
    width: calc((100% - 10px) * 0.625);
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ld-mini-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ld-mini-carousel-item.placeholder {
    background-color: #F0EBE5;
}

/* Video carousel items */
.ld-mini-carousel-item.video {
    position: relative;
    cursor: pointer;
}

.ld-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: background-color 0.3s;
}

.ld-video-play::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #e52721;
    margin-left: 4px;
}

.ld-mini-carousel-item.video:hover .ld-video-play {
    background-color: #f5ebdf;
}

/* Carousel navigation arrows */
.ld-mini-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
    padding-right: 20px;
}

.ld-mini-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E52721;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.ld-mini-arrow:hover {
    border-color: #E52721;
    background-color: #E52721;
}

.ld-mini-arrow:hover svg path {
    stroke: #FFFFFF;
}

.ld-mini-arrow svg {
    width: 18px;
    height: 18px;
}

.ld-mini-arrow svg path {
    stroke: #e52721;
    transition: stroke 0.3s;
}

.ld-mini-arrow.prev svg {
    transform: rotate(180deg);
}

.ld-mini-arrow.next {
    background-color: #E52721;
    border-color: #E52721;
}

.ld-mini-arrow.next svg path {
    stroke: #FFFFFF;
}

.ld-mini-arrow.next:hover {
    background-color: #C41E1E;
    border-color: #C41E1E;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1320px) {
    .ld-hero,
    .ld-about,
    .ld-recipes,
    .ld-content-grid {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 1024px) {
    .ld-hero-text {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 20px;
    }

    .ld-hero-title {
        font-size: 52px;
        line-height: 58px;
    }

    .ld-hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .ld-about-title {
        font-size: 36px;
        line-height: 42px;
    }

    .ld-about-description {
        font-size: 20px;
        line-height: 28px;
    }

    .ld-recipes-title {
        font-size: 48px;
    }

    .ld-recipes-header {
        gap: 30px;
    }

    .ld-content-grid {
        flex-direction: column;
    }

    .ld-articles-col,
    .ld-sidebar-col {
        width: 100%;
    }

    .ld-sidebar-col {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ld-sidebar-block {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .ld-hero-banner.desktop {
        display: none;
    }
    .ld-recipes {
        margin-top: 0;
    }
    .ld-hero-banner.mobile {
        display: block;
    }

    .ld-hero {
        border-radius: 20px;
    }

    .ld-hero-banner.mobile {
        border-radius: 20px;
    }

    .ld-hero-text {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 0 20px;
        max-width: 100%;
    }

    .ld-hero-title {
        font-size: 42px;
        line-height: 48px;
    }
    .ld-recipes-container {
        gap: 20px;
    }
    .ld-hero-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    .ld-recipes-description {
        margin-bottom: 0;
    }
    .ld-about {
        padding: 30px 20px;
        margin-top: 10px;
    }

    .ld-about-title {
        font-size: 20px;
        line-height: 24px;
    }

    .ld-about-description {
        font-size: 16px;
        line-height: 22px;
        text-align: left;
    }

    .ld-recipes-container {
        padding: 30px 0 20px 20px;
    }

    .ld-recipes-header {
        flex-direction: column;
        gap: 6px;
    }

    .ld-recipes-title {
        font-size: 18px;
    }

    .ld-recipes-title br {
        display: none;
    }

    .ld-recipes-description-block {
        max-width: 100%;
    }

    .ld-recipes-cards {
        flex-direction: column;
    }

    /* Mobile: hide large card, show all uniform cards in slider */
    .ld-card-large {
        display: none;
    }

    .ld-card-mobile-first {
        display: block;
    }

    .ld-cards-small-container {
        width: 100%;
    }

    .ld-cards-slider {
        height: auto;
    }

    .ld-cards-track {
        height: auto;
    }

    .ld-card-small {
        width: 260px;
        height: 380px;
    }

    /* Hide button in header, show bottom button */
    .ld-recipes-description-block .ld-button {
        display: none;
    }

    .ld-recipes-bottom-button {
        display: block;
    }

    .ld-recipes-bottom-button .ld-button {
        width: 100%;
        text-align: center;
    }

    .ld-content-grid {
        flex-direction: column;
    }

    .ld-articles-col,
    .ld-sidebar-col {
        width: 100%;
    }

    .ld-sidebar-col {
        flex-direction: column;
    }

    .ld-sidebar-block {
        min-width: 100%;
    }

    .ld-article-image-wrap {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .ld-hero,
    .ld-about,
    .ld-recipes,
    .ld-content-grid {
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
        align-items: flex-start;
    }
    .ld-article-title {
        font-size: 16px;
    }
    .ld-sidebar-title, .ld-sidebar-subtitle {
        font-size: 16px;
    }
    .ld-hero {
        border-radius: 16px;
    }
    .ld-mini-carousel-item {
        aspect-ratio: 16 / 11;
    }
    .ld-hero-banner.mobile {
        border-radius: 16px;
    }

    .ld-hero-title {
        font-size: 40px;
        line-height: 44px;
    }

    .ld-hero-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .ld-about-title {
        font-size: 16px;
        line-height: 24px;
    }

    .ld-recipes-title {
        font-size: 16px;
    }
    .ld-recipes-description {
        font-size: 16px;
        line-height: 22px;
    }
    .ld-card-large {
        min-height: 350px;
    }

    .ld-card-small {
        width: 248px;
        height: 326px;
    }

    .ld-cards-slider,
    .ld-cards-track {
        height: 350px;
    }

    .ld-mini-carousel-item {
        width: calc((100% - 10px) * 0.625);
    }
}
