.md-hero,
.md-details,
.md-pricing,
.md-gallery,
.md-cta {
    padding: 5vh 5vw;
}

.md-hero {
    border-radius: 16px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(to bottom, rgba(59, 42, 38, 0.45), rgba(59, 42, 38, 0.28)),
        url("/static/Madcakes/imgs/gallery/cupcake-bouquets/24872C16-422C-D863-08F8-F7D7B62EFD1A.jpg") center/cover no-repeat;
}

.md-hero__inner {
    max-width: 880px;
    margin: 0 auto;
}

.md-hero__kicker {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff !important;
}

.md-hero h1 {
    margin: 0.35rem 0 0.6rem;
    font-size: clamp(2rem, 3.8vw, 3rem);
    color: #fff !important;
}

.md-hero p {
    margin: 0.4rem 0 0;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #fff !important;
}

.md-hero__contact a {
    color: #fff;
    text-decoration: underline;
}

.md-details__inner,
.md-pricing__inner,
.md-gallery__inner,
.md-cta__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.md-details__inner {
    background: #fff;
    border: 1px solid #e8dccb;
    border-radius: 18px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.md-details__inner h2 {
    margin: 0 0 0.65rem;
    color: #3b2a26;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.md-details__inner p {
    margin: 0 auto;
    max-width: 860px;
    line-height: 1.65;
    font-size: 1.05rem;
    color: #3b2a26;
}

.md-details__note {
    margin-top: 0.85rem !important;
    font-weight: 700;
    color: #8b5e3c !important;
}

.md-pricing__inner h2,
.md-gallery__inner h2,
.md-cta__inner h2 {
    margin: 0 0 0.85rem;
    text-align: center;
    color: #3b2a26;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.md-pricing__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md-option {
    background: #fff;
    border: 1px solid #e8dccb;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.md-option h3 {
    margin: 0;
    color: #3b2a26;
    font-size: 1.2rem;
}

.md-option__price {
    margin: 0.4rem 0 0.5rem;
    color: #c9a15b !important;
    font-size: 1.45rem;
    font-weight: 800;
}

.md-option p {
    margin: 0;
    color: #3b2a26;
    line-height: 1.5;
}

.md-gallery__inner > p {
    margin: 0 auto 1.25rem;
    max-width: 780px;
    text-align: center;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #3b2a26;
}

.md-gallery__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md-gallery__item {
    margin: 0;
}

.md-gallery__item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e8dccb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.md-cta__inner {
    border: 1px solid #e8dccb;
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(to bottom, #fff, #fff7ec);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.md-cta__inner p {
    margin: 0 auto 1.1rem;
    max-width: 780px;
    color: #3b2a26;
    font-size: 1.05rem;
    line-height: 1.65;
}

.md-cta__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.md-btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    background: #c9a15b;
    color: #fff;
    border: 1px solid transparent;
    font-weight: 700;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.md-btn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.md-btn--ghost {
    background: #fff;
    color: #3b2a26;
    border-color: #e8dccb;
}

.md-btn--ghost:hover {
    background: #fff7ec;
}

.md-btn:focus-visible {
    outline: 3px solid #c9a15b;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .md-pricing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .md-pricing__grid,
    .md-gallery__grid {
        grid-template-columns: 1fr;
    }

    .md-gallery__item img {
        height: 240px;
    }
}
