/* ==========================================================================
   «Bloom» storefront (site/themes/bloom.php). Loaded after theme-salon.css: the cart, the windows, the
   product cards and the footer are «salon»'s and take the palette; here is what looks different — the
   paper page, the pill menu, the top of the home page, centred headings, arches.
   A copy sets the colours in its site/theme.php; --gold and --paper below can be given there too.
   ========================================================================== */

:root {
    --paper: #fbf7ee;             /* the page */
    --paper-2: #f3ebd8;           /* strips and quiet panels */
    --gold: #c39a3e;
    --gold-2: #e3c779;
    --gold-soft: #efe2bd;
    --serif: "Playfair Display", "Times New Roman", serif;
    --hdr-h: 96px;
}

body.site { background: var(--paper); }
.hdr::before { background: rgba(251, 247, 238, .92); }

/* ---------- header ---------- */

.bl-bar { display: flex; align-items: center; gap: 22px; height: 100%; }
.bl-menu { display: none; }
.bl-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.bl-brand img, .bl-brand__mark { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 6px 16px rgba(var(--shade), .2); transition: transform .6s var(--spring); }
.bl-brand__mark { box-shadow: none; color: var(--accent); }
.bl-brand:hover img { transform: rotate(-6deg) scale(1.05); }
.bl-brand b { display: block; font: 700 21px/1 var(--serif); color: var(--wordmark); letter-spacing: .01em; white-space: nowrap; }
.bl-brand small { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.bl-nav { position: relative; flex: 1; min-width: 0; height: 56px; border: 1.5px solid var(--gold); border-radius: 99px; }
.bl-nav__in.chips { align-items: center; gap: 2px; height: 100%; margin: 0; padding: 0 10px; border-radius: 99px; }
.bl-nav .chip { height: 38px; padding: 0 16px; border-radius: 99px; background: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.bl-nav .chip:hover { background: var(--gold-soft); }
.bl-nav .chip.is-active { background: var(--accent); color: #fff; }
.bl-nav .chip--page { color: var(--text-2); }
.bl-nav .chip--page:first-of-type { margin-left: auto; }
.bl-vine { position: absolute; top: -27px; width: 170px; height: 40px; color: var(--gold); pointer-events: none; }
.bl-vine--l { left: -30px; }
.bl-vine--r { right: -30px; transform: scaleX(-1); }

.bl-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.bl-call { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #3a2c06; font-size: 14.5px; font-weight: 800; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s; }
.bl-call:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(160, 120, 30, .3); }
.bl-call .i { width: 18px; height: 18px; }
.bl-round { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--gold); border-radius: 50%; background: none; color: var(--accent); transition: background-color .2s, color .2s, border-color .2s; }
.bl-round:hover, .dd-wrap.is-open > .bl-round { background: var(--accent); border-color: var(--accent); color: #fff; }
.bl-round .i { width: 20px; height: 20px; }
.bl-hdr .cart-btn.bl-cart { height: 46px; padding: 0 18px; border: 1.5px solid var(--gold); border-radius: 99px; background: none; color: var(--accent); font-weight: 800; }
.bl-hdr .cart-btn.bl-cart:hover { background: var(--gold-soft); }
.bl-hdr .cart-btn.bl-cart.has-items { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- the top of the home page ---------- */

.bl-main { padding-top: 0; }
.bl-hero { --art: 470px; --art-dx: 115px; --art-top: 124px; position: relative; height: 660px; }
.bl-hero__word { position: absolute; top: 8px; left: 0; right: 0; margin: 0; text-align: center; font: 800 clamp(120px, 18vw, 250px)/1 var(--serif); letter-spacing: -.02em; color: var(--accent); white-space: nowrap; user-select: none; transition: opacity .45s var(--ease), transform .6s var(--ease); }
/* the same word once more, as a white outline over the photo — so it reads whole */
.bl-hero__word--line { z-index: 2; color: transparent; -webkit-text-stroke: 2px #fff; pointer-events: none;
    -webkit-mask-image: radial-gradient(circle calc(var(--art) / 2) at calc(50% + var(--art-dx)) calc(var(--art-top) + var(--art) / 2 - 8px), #000 99%, transparent 100%);
    mask-image: radial-gradient(circle calc(var(--art) / 2) at calc(50% + var(--art-dx)) calc(var(--art-top) + var(--art) / 2 - 8px), #000 99%, transparent 100%); }
.bl-hero__sun { position: absolute; top: calc(var(--art-top) + var(--art) * .44); left: 50%; width: calc(var(--art) * .45); height: calc(var(--art) * .45); margin-left: calc(var(--art-dx) + var(--art) * .21); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3dc98, var(--gold) 70%); opacity: .92; }
.bl-hero__art { position: absolute; z-index: 1; top: var(--art-top); left: 50%; width: var(--art); height: var(--art); margin-left: calc(var(--art-dx) - var(--art) / 2); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--gold), 0 0 0 14px var(--paper), 0 0 0 15.5px var(--gold-2), 0 40px 70px rgba(var(--shade), .3); transition: opacity .45s var(--ease), transform .7s var(--ease); }
.bl-hero__art img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bl-hero__mark { width: 100%; height: 100%; padding: 16%; color: var(--gold-soft); }
.bl-hero__vine { position: absolute; z-index: 3; left: 50%; width: 160px; color: var(--gold); pointer-events: none; }
.bl-hero__vine--a { top: var(--art-top); margin-left: calc(var(--art-dx) - var(--art) / 2 - 90px); transform: rotate(-24deg); }
.bl-hero__vine--b { top: calc(var(--art-top) + var(--art) - 50px); margin-left: calc(var(--art-dx) + var(--art) / 2 - 130px); transform: rotate(150deg); }
.bl-hero.is-swap .bl-hero__art { opacity: 0; transform: translateY(18px) scale(.97); }
.bl-hero.is-swap .bl-hero__word { opacity: 0; transform: translateY(-10px); }
.bl-hero--plain .bl-hero__word--line { display: none; }

.bl-hero__col { position: absolute; left: 0; bottom: 64px; z-index: 4; width: min(390px, 34%); }
.bl-hero__texts { display: grid; }
.bl-hero__text { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s; }
.bl-hero__text.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.bl-hero__text h1, .bl-hero__text h2 { margin: 0 0 12px; font: 700 31px/1.15 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.bl-hero__text p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.bl-hero__btn { height: 48px; padding: 0 24px; font-size: 15px; }
.bl-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.bl-hero__facts li { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 13px; border-radius: 99px; background: var(--gold-soft); font-size: 13px; font-weight: 700; color: #5a4712; }
.bl-hero__facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.bl-hero__count { position: absolute; right: 0; bottom: 78px; z-index: 4; display: flex; align-items: center; gap: 14px; font: 700 22px/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.bl-hero__count small { font: 600 15px/1 "Manrope", sans-serif; color: var(--muted); }
.bl-hero__count button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--gold); border-radius: 50%; background: none; color: var(--accent); transition: background-color .2s, color .2s, border-color .2s; }
.bl-hero__count button:last-child, .bl-hero__count button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.bl-hero__count svg { width: 16px; height: 16px; }
.bl-hero__count .flip { display: grid; transform: scaleX(-1); }

/* ---------- the strip of facts ---------- */

.bl-strip { background: var(--paper-2); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
.bl-strip ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 0 auto; padding-top: 30px; padding-bottom: 30px; list-style: none; }
.bl-strip li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.bl-strip i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: var(--gold-2); }
.bl-strip .i { width: 21px; height: 21px; }
.bl-strip b { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.bl-strip span { font-size: 13px; color: var(--text-2); }

/* ---------- headings ---------- */

.bl-sec { margin-top: 84px; }
.bl-head { margin: 0 auto 40px; max-width: 760px; text-align: center; }
.bl-head h2, .bl-main .fl-cat__head .cat__title { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; font: 700 40px/1.1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.bl-head h2::before, .bl-head h2::after { content: ""; flex: 0 1 150px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 10px); }
.bl-head h2 span { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.bl-head h2 span::before, .bl-head h2 span::after { content: "✦"; font-size: 15px; color: var(--gold); }
.bl-head p { margin: 14px 0 0; font-size: 16px; color: var(--text-2); }

/* ---------- the sections of the catalog as a mosaic ---------- */

.bl-mosaic { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 230px; gap: 18px; }
.bl-mosaic a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 26px 28px; border-radius: 30px; background: var(--accent); color: #fff; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.bl-mosaic a:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(var(--shade), .22); }
.bl-mosaic a:first-child { grid-row: span 2; }
.bl-mosaic--3 a:first-child, .bl-mosaic--4 a:first-child { grid-row: span 1; }
.bl-mosaic--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
.bl-mosaic--4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }
.bl-mosaic img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bl-mosaic a:hover img { transform: scale(1.06); }
.bl-mosaic a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--hero-shade), 0) 42%, rgba(var(--hero-shade), .86) 100%); }
.bl-mosaic b { font: 700 27px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.bl-mosaic a:first-child b { font-size: 38px; }
.bl-mosaic--3 a:first-child b, .bl-mosaic--4 a:first-child b { font-size: 27px; }
.bl-mosaic span { margin-top: 8px; font-size: 14px; opacity: .88; }

/* ---------- the catalog ---------- */

.bl-main .fl-mode { margin: 64px 0 0; padding: 12px; border-radius: 22px; background: var(--paper-2); }
.bl-main .fl-cat { margin-top: 84px; margin-bottom: 0; }
.bl-main .fl-cat__head { display: block; margin-bottom: 40px; text-align: center; }
.bl-main .fl-cat__head::after { display: none; }
.bl-main .fl-cat__head .cat__title::before, .bl-main .fl-cat__head .cat__title::after { content: "✦"; font-size: 15px; color: var(--gold); }
.bl-main .fl-cat__count { display: block; margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.bl-main .fl-cat--side .fl-cat__head { grid-column: 1 / -1; }
.bl-main .pcard { align-items: center; padding: 10px 10px 16px; border-radius: 999px 999px 28px 28px; text-align: center; transition: background-color .3s, transform .4s var(--ease), box-shadow .4s; }
.bl-main .pcard:hover { background: #fff; transform: translateY(-6px); box-shadow: 0 24px 50px rgba(var(--shade), .14); }
.bl-main .pcard__img { width: 100%; border-radius: 999px 999px 20px 20px; background: var(--paper-2); box-shadow: 0 0 0 1.5px var(--gold-soft); }
.bl-main .pcard__labels { top: 16%; left: 50%; justify-content: center; transform: translateX(-50%); }
.bl-main .pcard__body { width: 100%; padding: 16px 4px 0; }
.bl-main .pcard__name { min-height: 0; font: 700 18px/1.2 var(--serif); font-variant-numeric: lining-nums; }
.bl-main .pcard__desc { display: -webkit-box; overflow: hidden; margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--text-2); -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.bl-main .pcard__price { margin-top: 10px; font-size: 17px; color: var(--accent); }
.bl-main .fl-buy, .bl-main .pcard__foot [data-card-stepper] { border-radius: 99px; }
.bl-main .fl-more-btn { border-color: var(--gold); border-radius: 99px; }
.bl-main .fl-more-btn:hover { background: var(--gold-soft); border-color: var(--gold); }
.bl-main .fl-side { border-radius: 999px 999px 26px 26px; }
.bl-main .fl-side::after { border-radius: 999px 999px 18px 18px; border-color: rgba(255, 255, 255, .7); }
.plabel { border-radius: 99px; }

/* ---------- «не нашли букет?», «о нас», the shops ---------- */

.bl-cta { position: relative; overflow: hidden; margin-top: 84px; padding: 64px 70px; border-radius: 36px; background: var(--accent); color: #fff; isolation: isolate; }
.bl-cta > img { position: absolute; top: 0; right: 0; z-index: -1; width: 62%; height: 100%; object-fit: cover; opacity: .92; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.bl-cta h2 { margin: 0 0 12px; max-width: 560px; font: 700 42px/1.1 var(--serif); }
.bl-cta p { margin: 0 0 26px; max-width: 480px; font-size: 16px; color: rgba(255, 255, 255, .8); }
.bl-cta__btn, .bl-cta__btn:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #3a2c06; }

.bl-main .fl-info { margin: 84px 0 0; }
.bl-main .fl-info .fl-cat__head { margin-bottom: 30px; }

.bl-about { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 96px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.bl-about--plain { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.bl-about__photo { position: relative; }
.bl-about__photo img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 60px rgba(var(--shade), .24); }
.bl-about__photo::before { content: ""; position: absolute; inset: -18px; border: 1.5px dashed var(--gold); border-radius: 50%; animation: bl-turn 60s linear infinite; }
@keyframes bl-turn { to { transform: rotate(360deg); } }
.bl-about small { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.bl-about h2 { margin: 12px 0 18px; font: 700 44px/1.08 var(--serif); color: var(--accent); }
.bl-about p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.bl-about .fl-btn { margin-top: 12px; }

.bl-main .team { margin: 84px 0 0; }
.bl-main .fl-salons { margin-bottom: 0; }
.bl-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bl-place { display: flex; flex-direction: column; gap: 10px; padding: 32px 34px; border: 1.5px solid var(--accent-line); border-radius: 30px; background: #fff; }
.bl-place b { font: 700 27px/1.15 var(--serif); font-variant-numeric: lining-nums; }
.bl-place p { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; color: var(--text-2); }
.bl-place p .i { width: 18px; height: 18px; color: var(--accent); }
.bl-place .fl-link { margin-top: 8px; }
.bl-main .xsec { margin: 84px 0 0; }
.bl-main > .container:last-child { padding-bottom: 84px; }

/* ---------- narrower screens ---------- */

@media (max-width: 1240px) {
    .bl-nav .chip--page { display: none; }
    .bl-call span { display: none; }
    .bl-call { width: 46px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
    .bl-hero { --art: 400px; --art-dx: 130px; --art-top: 150px; }
    .bl-hero__col { width: min(340px, 40%); }
    .bl-about { grid-template-columns: 300px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 900px) {
    :root { --hdr-h: 68px; }
    .bl-bar { gap: 10px; }
    .bl-menu { display: block; order: -1; }
    .bl-menu .dd { left: 0; right: auto; }
    .bl-nav { display: none; }
    .bl-brand { flex: 1; min-width: 0; gap: 9px; }
    .bl-brand img, .bl-brand__mark { width: 46px; height: 46px; }
    .bl-brand b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
    .bl-brand small { font-size: 8px; }
    .bl-round, .bl-call, .bl-hdr .cart-btn.bl-cart { width: 42px; height: 42px; }
    .bl-hdr .cart-btn.bl-cart { padding: 0; justify-content: center; }
    .bl-hdr .cart-btn.bl-cart [data-cart-total] { display: none; }
    .bl-tools { gap: 6px; }

    .bl-hero { height: auto; padding-bottom: 30px; }
    .bl-hero__word { position: relative; top: 0; margin-top: 12px; font-size: 25vw; }
    .bl-hero__word--line { display: none; }
    .bl-hero__sun { top: 20vw; left: auto; right: 2vw; width: 34vw; height: 34vw; margin-left: 0; }
    .bl-hero__art { position: relative; top: 0; left: 0; width: 76vw; height: 76vw; margin: -7vw auto 0; }
    .bl-hero__vine { display: none; }
    .bl-hero__col { position: relative; left: 0; bottom: 0; width: auto; margin-top: 34px; }
    .bl-hero__text h1, .bl-hero__text h2 { font-size: 27px; }
    .bl-hero__count { position: relative; right: 0; bottom: 0; justify-content: center; margin-top: 26px; }
    .bl-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding-top: 26px; padding-bottom: 26px; }
    .bl-sec, .bl-main .fl-cat, .bl-cta, .bl-main .fl-info, .bl-main .team, .bl-main .xsec { margin-top: 56px; }
    .bl-head { margin-bottom: 26px; }
    .bl-head h2, .bl-main .fl-cat__head .cat__title { font-size: 28px; gap: 10px; }
    .bl-head h2::before, .bl-head h2::after { flex-basis: 24px; }
    .bl-head h2 span { gap: 8px; white-space: normal; }
    .bl-main .fl-cat__head { margin-bottom: 24px; }
    .bl-mosaic, .bl-mosaic--3, .bl-mosaic--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
    .bl-mosaic a { padding: 18px 20px; border-radius: 24px; }
    .bl-mosaic a:first-child { grid-row: span 1; grid-column: 1 / 3; }
    .bl-mosaic b, .bl-mosaic--3 a:first-child b, .bl-mosaic--4 a:first-child b { font-size: 20px; }
    .bl-mosaic a:first-child b { font-size: 28px; }
    .bl-mosaic span { font-size: 12.5px; }
    .bl-main .fl-mode { margin-top: 40px; }
    .bl-main .pcard { padding: 6px 6px 12px; }
    .bl-main .pcard__name { font-size: 15.5px; }
    .bl-cta { padding: 36px 26px 210px; border-radius: 28px; }
    .bl-cta h2 { font-size: 29px; }
    .bl-cta > img { top: auto; bottom: 0; width: 100%; height: 200px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
    .bl-about { grid-template-columns: 1fr; gap: 34px; margin-top: 64px; }
    .bl-about__photo { width: min(280px, 74%); margin: 0 auto; }
    .bl-about h2 { font-size: 32px; }
    .bl-place { padding: 24px; border-radius: 24px; }
    .bl-place b { font-size: 22px; }
    .bl-main > .container:last-child { padding-bottom: 56px; }
}
html.app .bl-nav, html.app .bl-call { display: none; }
@media (prefers-reduced-motion: reduce) { .bl-about__photo::before { animation: none; } }

/* the header stands on the paper too; the menu fades at its right end when the sections do not fit */
.bl-hdr, .bl-hdr::before { background: var(--paper); }
.bl-nav__in.chips { padding: 0 14px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
