/*
 * Lime Gift homepage v2.
 * Scoped to .home-v2: this file intentionally contains no selectors for the
 * live site header, news section, footer or cached Bitrix bundles.
 */
.home-v2 {
    --home-v2-accent: #c7f000;
    --home-v2-black: #11130f;
    --home-v2-copy: #3f443d;
    --home-v2-paper: #ffffff;
    --home-v2-soft: #f5f5f0;
    --home-v2-focus: #77a600;
    --home-v2-gutter: clamp(16px, 4.8vw, 64px);
    --home-v2-content: 1424px;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: clip;
    background: var(--home-v2-paper);
    color: var(--home-v2-black);
    font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.home-v2,
.home-v2 *,
.home-v2 *::before,
.home-v2 *::after {
    box-sizing: border-box;
}

.home-v2 img,
.home-v2 svg {
    display: block;
}

.home-v2 a {
    color: inherit;
}

.home-v2 [hidden] {
    display: none !important;
}

.home-v2 button,
.home-v2 a {
    -webkit-tap-highlight-color: transparent;
}

.home-v2 button {
    font: inherit;
}

.home-v2__container {
    width: min(calc(100% - (var(--home-v2-gutter) * 2)), var(--home-v2-content));
    margin-inline: auto;
}

.home-v2__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.home-v2 :where(a, button):focus-visible {
    outline: 3px solid var(--home-v2-focus);
    outline-offset: 4px;
}

/* Hero carousel --------------------------------------------------------- */
.home-v2__hero {
    position: relative;
    z-index: 0;
    min-height: clamp(458px, 42.2vw, 600px);
    overflow: hidden;
    background: #dce8f2;
}

.home-v2__slides,
.home-v2__slide {
    min-height: inherit;
}

.home-v2__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms ease, visibility 0s linear 520ms;
}

.home-v2__slide.is-active {
    position: relative;
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.home-v2__hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-v2__hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.home-v2__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.home-v2__hero-gallery {
    position: absolute;
    top: clamp(30px, 4vw, 60px);
    right: max(var(--home-v2-gutter), calc((100vw - var(--home-v2-content)) / 2));
    bottom: clamp(54px, 6vw, 82px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 18px);
    width: min(46%, 650px);
    transform: rotate(1.2deg);
}

.home-v2__hero-gallery-item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 19, 15, 0.16);
}

.home-v2__hero-gallery-item:nth-child(1) {
    transform: rotate(-3deg) translateY(7%);
}

.home-v2__hero-gallery-item:nth-child(2) {
    transform: rotate(2deg) translateY(-2%);
}

.home-v2__hero-gallery-item:nth-child(3) {
    transform: rotate(2.5deg) translateY(3%);
}

.home-v2__hero-gallery-item:nth-child(4) {
    transform: rotate(-2deg) translateY(-5%);
}

.home-v2__hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-v2__hero-shade {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(238, 246, 252, 0.98) 0%,
            rgba(232, 242, 250, 0.94) 34%,
            rgba(226, 238, 247, 0.62) 48%,
            rgba(226, 238, 247, 0) 64%
        );
    pointer-events: none;
}

.home-v2__hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding-top: clamp(42px, 5vw, 72px);
    padding-bottom: clamp(96px, 9vw, 132px);
}

.home-v2__hero-copy {
    width: min(50%, 700px);
    min-width: 0;
}

.home-v2__hero-title {
    max-width: 12.2ch;
    margin: 0;
    color: var(--home-v2-black);
    font-size: clamp(44px, 4.5vw, 72px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.052em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.home-v2__hero-description {
    max-width: 34ch;
    margin: clamp(20px, 2.2vw, 30px) 0 0;
    color: var(--home-v2-black);
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 450;
    line-height: 1.42;
}

.home-v2__hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    margin-top: clamp(28px, 3vw, 42px);
}

.home-v2__button,
.home-v2__text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    border: 0;
    text-decoration: none;
}

.home-v2__button {
    padding: 14px 28px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 520;
    line-height: 1.25;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-v2__button--primary {
    background: var(--home-v2-black);
    color: #fff !important;
}

.home-v2__button--primary:hover {
    background: #2c302a;
    color: #fff !important;
    transform: translateY(-2px);
}

.home-v2__text-link {
    padding: 8px 2px;
    color: var(--home-v2-black) !important;
    font-size: 16px;
    font-weight: 520;
    line-height: 1.25;
}

.home-v2__text-link svg,
.home-v2__featured-cta svg,
.home-v2__seasonal .home-v2__button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.home-v2__text-link:hover svg,
.home-v2__featured-card a:hover .home-v2__featured-cta svg,
.home-v2__seasonal .home-v2__button:hover svg {
    transform: translateX(4px);
}

.home-v2__slider-controls {
    position: absolute;
    z-index: 4;
    right: max(var(--home-v2-gutter), calc((100vw - var(--home-v2-content)) / 2));
    bottom: clamp(24px, 3.6vw, 48px);
    display: none;
    align-items: center;
    gap: 10px;
}

.home-v2.is-enhanced .home-v2__slider-controls {
    display: flex;
}

.home-v2__slider-arrow,
.home-v2__slider-pause {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 19, 15, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--home-v2-black);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(17, 19, 15, 0.08);
    backdrop-filter: blur(8px);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.home-v2__slider-arrow:hover,
.home-v2__slider-pause:hover {
    border-color: var(--home-v2-black);
    background: #fff;
    transform: translateY(-2px);
}

.home-v2__slider-arrow svg,
.home-v2__slider-pause svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-v2__slider-pause .home-v2__pause-icon--play,
.home-v2__slider-pause[aria-pressed="true"] .home-v2__pause-icon--pause {
    display: none;
}

.home-v2__slider-pause[aria-pressed="true"] .home-v2__pause-icon--play {
    display: block;
}

.home-v2__slider-pause:disabled {
    cursor: default;
    opacity: 0.62;
    transform: none;
}

.home-v2__slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(17, 19, 15, 0.08);
    backdrop-filter: blur(8px);
}

.home-v2__slider-dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-v2__slider-dot span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 19, 15, 0.36);
    transition: width 180ms ease, background-color 180ms ease;
}

.home-v2__slider-dot.is-active span,
.home-v2__slider-dot[aria-current="true"] span {
    width: 24px;
    background: var(--home-v2-black);
}

/* Category circles ------------------------------------------------------ */
.home-v2__categories {
    padding: clamp(28px, 4vw, 56px) 0 clamp(42px, 5.4vw, 76px);
    background: var(--home-v2-paper);
}

.home-v2__category-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-v2__category-item {
    min-width: 0;
}

.home-v2__category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--home-v2-black) !important;
    text-align: center;
    text-decoration: none;
}

.home-v2__category-media {
    display: block;
    width: min(100%, 172px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--home-v2-soft);
}

.home-v2__category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.home-v2__category-link:hover .home-v2__category-media img,
.home-v2__category-link:focus-visible .home-v2__category-media img {
    transform: scale(1.055);
}

.home-v2__category-label {
    max-width: 15ch;
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 500;
    line-height: 1.3;
}

/* Featured cards -------------------------------------------------------- */
.home-v2__featured {
    padding: 0 0 clamp(56px, 7.5vw, 104px);
    background: var(--home-v2-paper);
}

.home-v2__section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3vw, 42px);
}

.home-v2__section-heading h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(36px, 4.3vw, 64px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.047em;
    text-wrap: balance;
}

.home-v2__featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 24px);
}

.home-v2__featured-card {
    min-width: 0;
}

.home-v2__featured-card > a {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: var(--home-v2-black) !important;
    text-decoration: none;
}

.home-v2__featured-media {
    display: block;
    aspect-ratio: 0.857;
    overflow: hidden;
    background: var(--home-v2-soft);
}

.home-v2__featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.home-v2__featured-card > a:hover .home-v2__featured-media img,
.home-v2__featured-card > a:focus-visible .home-v2__featured-media img {
    transform: scale(1.025);
}

.home-v2__featured-title {
    margin-top: 16px;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

.home-v2__featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.35;
}

.home-v2__featured-cta svg {
    width: 18px;
    height: 18px;
}

/* Seasonal banner ------------------------------------------------------- */
.home-v2__seasonal {
    position: relative;
    min-height: clamp(330px, 27vw, 520px);
    overflow: hidden;
    background: #dce8f2;
}

.home-v2__seasonal-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-v2__seasonal-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 66%;
    height: 100%;
    overflow: hidden;
}

.home-v2__seasonal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.home-v2__seasonal-shade {
    z-index: 1;
    background: linear-gradient(90deg, rgba(226, 239, 249, 0.98) 0%, rgba(226, 239, 249, 0.9) 27%, rgba(226, 239, 249, 0) 56%);
    pointer-events: none;
}

.home-v2__seasonal-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding-block: clamp(42px, 5vw, 76px);
}

.home-v2__seasonal-copy {
    width: min(37%, 510px);
    min-width: 0;
}

.home-v2__seasonal-copy h2 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.048em;
}

.home-v2__seasonal-copy p {
    max-width: 31ch;
    margin: 18px 0 0;
    color: var(--home-v2-black);
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.35;
}

.home-v2__seasonal-copy .home-v2__button {
    margin-top: clamp(24px, 2.5vw, 34px);
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
    .home-v2 {
        --home-v2-gutter: clamp(20px, 4vw, 48px);
    }

    .home-v2__hero {
        min-height: 540px;
    }

    .home-v2__hero-copy {
        width: 54%;
    }

    .home-v2__hero-title {
        font-size: clamp(42px, 5.4vw, 62px);
    }

    .home-v2__category-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(138px, 18vw);
        grid-template-columns: none;
        gap: 22px;
        margin-inline: calc(var(--home-v2-gutter) * -1);
        padding-inline: var(--home-v2-gutter);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: var(--home-v2-gutter);
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }

    .home-v2__category-item {
        scroll-snap-align: start;
    }

    .home-v2__category-media {
        width: min(100%, 160px);
    }
}

@media (max-width: 991px) {
    .home-v2__hero-copy {
        width: 58%;
    }

    .home-v2__hero-media {
        width: 48%;
    }

    .home-v2__hero-gallery {
        width: 43%;
    }

    .home-v2__hero-shade {
        background: linear-gradient(90deg, rgba(238, 246, 252, 0.98) 0%, rgba(232, 242, 250, 0.91) 44%, rgba(226, 238, 247, 0.15) 78%);
    }

    .home-v2__featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 18px;
    }

    .home-v2__featured-title {
        font-size: 20px;
    }

    .home-v2__seasonal-copy {
        width: 46%;
    }
}

@media (max-width: 767px) {
    .home-v2 {
        --home-v2-gutter: 16px;
    }

    .home-v2__hero {
        min-height: 720px;
    }

    .home-v2__hero-media {
        inset: 0 0 auto 0;
        width: 100%;
        height: 330px;
    }

    .home-v2__hero-media img {
        object-position: center;
    }

    .home-v2__hero-gallery {
        inset: 22px 16px auto 16px;
        width: auto;
        height: 286px;
        gap: 9px;
        transform: rotate(0.6deg);
    }

    .home-v2__hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(229, 239, 247, 0.02) 0%,
                rgba(229, 239, 247, 0.12) 32%,
                rgba(238, 246, 252, 0.92) 50%,
                rgba(238, 246, 252, 1) 72%,
                rgba(238, 246, 252, 1) 100%
            );
    }

    .home-v2__hero-layout {
        align-items: flex-end;
        padding-top: 330px;
        padding-bottom: 108px;
    }

    .home-v2__hero-copy {
        width: 100%;
    }

    .home-v2__hero-title {
        max-width: 12ch;
        font-size: clamp(36px, 10.5vw, 46px);
        line-height: 1;
        letter-spacing: -0.047em;
    }

    .home-v2__hero-description {
        max-width: 31ch;
        margin-top: 18px;
        font-size: 17px;
    }

    .home-v2__hero-actions {
        gap: 10px 18px;
        margin-top: 26px;
    }

    .home-v2__button {
        min-height: 50px;
        padding: 13px 20px;
        font-size: 15px;
    }

    .home-v2__text-link {
        min-height: 48px;
        font-size: 14px;
    }

    .home-v2__slider-controls {
        right: var(--home-v2-gutter);
        bottom: 24px;
        left: var(--home-v2-gutter);
        justify-content: center;
        gap: 7px;
    }

    .home-v2__slider-arrow,
    .home-v2__slider-pause {
        width: 40px;
        height: 40px;
    }

    .home-v2__slider-dots {
        min-height: 40px;
        padding-inline: 7px;
    }

    .home-v2__slider-dot {
        width: 22px;
        height: 34px;
    }

    .home-v2__categories {
        padding: 28px 0 50px;
    }

    .home-v2__category-list {
        grid-auto-columns: 132px;
        gap: 16px;
    }

    .home-v2__category-link {
        gap: 12px;
    }

    .home-v2__category-label {
        font-size: 14px;
    }

    .home-v2__featured {
        padding-bottom: 64px;
    }

    .home-v2__section-heading {
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .home-v2__section-heading h2 {
        max-width: 12ch;
        font-size: clamp(34px, 9vw, 44px);
    }

    .home-v2__section-heading .home-v2__text-link {
        flex: 0 0 auto;
        min-height: 40px;
        padding-top: 2px;
    }

    .home-v2__featured-grid {
        gap: 28px 12px;
    }

    .home-v2__featured-title {
        margin-top: 12px;
        font-size: 16px;
    }

    .home-v2__featured-cta {
        margin-top: 6px;
        font-size: 13px;
    }

    .home-v2__seasonal {
        min-height: 560px;
    }

    .home-v2__seasonal-media {
        inset: 0 -25% auto auto;
        width: 150%;
        height: auto;
        aspect-ratio: 716 / 261;
    }

    .home-v2__seasonal-media img {
        object-position: left top;
    }

    .home-v2__seasonal-shade {
        background: linear-gradient(180deg, rgba(226, 239, 249, 0.02) 0%, rgba(226, 239, 249, 0.38) 48%, rgba(226, 239, 249, 0.98) 70%, rgba(226, 239, 249, 1) 100%);
    }

    .home-v2__seasonal-layout {
        align-items: flex-end;
        padding-block: 48px;
    }

    .home-v2__seasonal-copy {
        width: 100%;
    }

    .home-v2__seasonal-copy h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .home-v2__seasonal-copy p {
        max-width: 30ch;
        margin-top: 14px;
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    .home-v2__hero {
        min-height: 740px;
    }

    .home-v2__hero-layout {
        padding-top: 300px;
    }

    .home-v2__hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-v2__hero-actions .home-v2__button {
        width: 100%;
    }

    .home-v2__section-heading {
        display: block;
    }

    .home-v2__section-heading .home-v2__text-link {
        margin-top: 12px;
    }

    .home-v2__featured-grid {
        gap: 24px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 *,
    .home-v2 *::before,
    .home-v2 *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
