﻿.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.home-hero {
    position: relative;
    min-height: 520px;
    border-radius: 36px;
    padding: 52px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(218, 175, 140, 0.35), transparent 34%), radial-gradient(circle at 10% 90%, rgba(255, 226, 204, 0.65), transparent 38%), linear-gradient(135deg, #fffaf6 0%, #f5ece5 100%);
    box-shadow: 0 24px 80px rgba(70, 47, 35, 0.10);
    border: 1px solid #f0e4dc;
}

    .home-hero::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        right: -90px;
        top: -90px;
        background: rgba(255, 255, 255, 0.55);
        filter: blur(2px);
    }

.home-hero__content {
    position: relative;
    z-index: 2;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadbd0;
    color: #8d6c56;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #261f1a;
}

.home-hero p {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.65;
    color: #765f50;
}

.home-hero__actions,
.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .home-btn:hover {
        transform: translateY(-2px);
    }

.home-btn--dark {
    color: #fff;
    background: #2f2924;
    box-shadow: 0 14px 30px rgba(47, 41, 36, 0.22);
}

.home-btn--light {
    color: #2f2924;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #eadbd0;
}

.home-hero__visual {
    position: relative;
    z-index: 2;
    min-height: 420px;
}

.hero-card {
    position: absolute;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(238, 222, 211, 0.9);
    box-shadow: 0 28px 70px rgba(65, 43, 32, 0.20);
}

.hero-card--main {
    inset: 0 20px 0 20px;
    transform: rotate(2deg);
}

    .hero-card--main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hero-card__placeholder {
    height: 100%;
    min-height: 420px;
    display: grid;
    place-items: center;
    color: #9d8778;
    background: #f7f0ea;
    font-weight: 700;
}

.hero-card__label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #2f2924;
}

    .hero-card__label span {
        font-weight: 700;
    }

    .hero-card__label strong {
        white-space: nowrap;
    }

.hero-floating {
    position: absolute;
    z-index: 4;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #eadbd0;
    box-shadow: 0 12px 28px rgba(55, 38, 29, 0.12);
    font-size: 14px;
    font-weight: 700;
    color: #5d493d;
}

.hero-floating--top {
    top: 36px;
    left: -6px;
}

.hero-floating--bottom {
    right: -2px;
    bottom: 46px;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 54px;
}

.home-feature {
    min-height: 170px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #efe4dc;
    box-shadow: 0 16px 42px rgba(84, 59, 42, 0.055);
}

    .home-feature span {
        display: block;
        color: #b59681;
        font-weight: 800;
        margin-bottom: 18px;
    }

    .home-feature strong {
        display: block;
        font-size: 18px;
        margin-bottom: 10px;
        color: #2f2924;
    }

    .home-feature p {
        margin: 0;
        color: #7b6b61;
        line-height: 1.5;
    }

.home-section {
    margin-bottom: 60px;
}

.home-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.home-section h2,
.home-cta h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #261f1a;
}

.home-link {
    color: #735948;
    text-decoration: none;
    font-weight: 700;
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-category-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 100% 0%, rgba(218, 175, 140, 0.34), transparent 38%), linear-gradient(135deg, #fff 0%, #f7eee7 100%);
    border: 1px solid #efe4dc;
    box-shadow: 0 18px 44px rgba(84, 59, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .home-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 62px rgba(84, 59, 42, 0.12);
    }

    .home-category-card::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        right: -34px;
        bottom: -34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.75);
    }

    .home-category-card span {
        position: relative;
        z-index: 2;
        font-size: 22px;
        font-weight: 800;
        color: #2f2924;
        line-height: 1.15;
    }

    .home-category-card small {
        position: relative;
        z-index: 2;
        color: #8d6c56;
        font-weight: 700;
    }

.home-bouquets {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.home-bouquet-card {
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #efe4dc;
    box-shadow: 0 16px 42px rgba(84, 59, 42, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .home-bouquet-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 62px rgba(84, 59, 42, 0.12);
    }

.home-bouquet-card__image {
    aspect-ratio: 1 / 1.12;
    background: #f7f0ea;
    overflow: hidden;
}

    .home-bouquet-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.home-bouquet-card:hover .home-bouquet-card__image img {
    transform: scale(1.045);
}

.home-bouquet-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #9d8778;
    font-size: 14px;
}

.home-bouquet-card__body {
    padding: 14px;
}

    .home-bouquet-card__body strong {
        display: block;
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 8px;
        color: #2f2924;
    }

    .home-bouquet-card__body span {
        color: #725846;
        font-weight: 800;
    }

.home-empty {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #efe4dc;
    color: #7b6b61;
}

.home-cta {
    padding: 42px;
    border-radius: 34px;
    background: radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.75), transparent 34%), linear-gradient(135deg, #2f2924 0%, #6d5546 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 28px 80px rgba(47, 41, 36, 0.2);
}

    .home-cta .home-eyebrow {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
        color: #f6e7dc;
    }

    .home-cta h2 {
        color: #fff;
    }

    .home-cta p {
        margin: 12px 0 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 17px;
    }

    .home-cta .home-btn--dark {
        background: #fff;
        color: #2f2924;
    }

    .home-cta .home-btn--light {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.28);
    }

@media (max-width: 1080px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        min-height: 460px;
    }

    .home-features,
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-bouquets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .home-page {
        padding: 16px 12px 42px;
    }

    .home-hero {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 28px;
    }

        .home-hero p {
            font-size: 16px;
        }

    .home-hero__visual {
        min-height: 360px;
    }

    .hero-card--main {
        inset: 0;
    }

    .hero-floating {
        font-size: 12px;
    }

    .home-features,
    .home-categories {
        grid-template-columns: 1fr;
    }

    .home-feature {
        min-height: auto;
    }

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

    .home-bouquets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-bouquet-card__body strong {
        font-size: 14px;
    }

    .home-cta {
        padding: 28px 22px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 28px;
    }
}

@media (max-width: 420px) {
    .home-bouquets {
        grid-template-columns: 1fr;
    }
}
