/* ==========================================================================
   «Salon» storefront theme (site/themes/salon.php). Loaded after site.css, only by a copy of the
   shop that switched the theme on; the cart, the checkout and the windows keep the program's
   markup and take the palette below.
   A copy changes the colours in its site/theme.php ('colors' => ['accent' => '#…', …]): every
   variable of this block can be given there without the two dashes.
   ========================================================================== */

:root {
    --accent: #2f6b55;            /* buttons, links, active things */
    --accent-dark: #24543f;
    --accent-soft: #e2efe8;       /* tinted panels and quiet buttons */
    --accent-softer: #f3f8f5;     /* the strip above the header, the footer */
    --accent-line: #cfe1d8;       /* borders on tinted panels */
    --accent2: #c8694d;           /* the second colour: a few labels and counters */
    --accent2-soft: #fbeee8;
    --tint3: #f7f1e3;             /* the third panel colour */
    --wordmark: #2f6b55;          /* the shop's name in the logo */
    --label-hit: var(--accent2);
    --label-new: var(--accent);
    --ink: #1f2a26;
    --text-2: #55635d;
    --text-3: #46534d;
    --shade: 30, 50, 42;          /* shadows, r, g, b */
    --hero-shade: 14, 38, 29;     /* the veil over the welcome picture, r, g, b */

    --text: var(--ink);
    --muted: #7d8a84;
    --soft: #f1f5f3;
    --soft-2: #e4ece8;
    --line: #e3ebe6;
    --dark: var(--accent);        /* the program's primary buttons */
    --red: #d6405a;
    --hdr-h: 76px;

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --script: "Great Vibes", "Cormorant Garamond", cursive;
}

html { scroll-padding-top: calc(var(--hdr-h) + 68px); }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
:focus-visible { outline-color: var(--accent); }

.pcard__placeholder, .cart-empty__bird { color: var(--accent-line); }
.ptr { color: var(--accent); }

/* ---------- top strip ---------- */

.fl-top { background: var(--accent-softer); font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.fl-top__in { display: flex; align-items: center; gap: 20px; height: 40px; }
.fl-top__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fl-top__item .i { width: 15px; height: 15px; color: var(--accent); }
.fl-top__nav { display: flex; gap: 22px; margin-left: auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.fl-top__call { flex: none; height: 28px; padding: 0 14px; border: 0; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--accent-line); font-size: 12.5px; font-weight: 700; color: var(--accent); transition: background-color .2s, color .2s; }
.fl-top__call:hover { background: var(--accent); color: #fff; }
.fl-top .socials { flex: none; flex-wrap: nowrap; }
.fl-top__nav a, .fl-top__nav button { padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: inherit; transition: color .2s; }
.fl-top__nav a:hover, .fl-top__nav button:hover { color: var(--accent); }

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

.hdr.fl-hdr { height: var(--hdr-h); background: #fff; }
.hdr.fl-hdr::before { display: none; }
.fl-bar { display: flex; align-items: center; gap: 18px; height: 100%; }

.fl-logo { display: flex; align-items: center; gap: 4px; flex: none; }
.fl-logo__mark { width: auto; height: 50px; transition: transform .6s var(--spring); }
.fl-logo__mark--svg { height: 44px; margin-right: 4px; color: var(--accent); }
.fl-logo:hover .fl-logo__mark { transform: rotate(-4deg) scale(1.04); }
.fl-logo__text { display: flex; flex-direction: column; line-height: 1; }
.fl-logo__text b { color: var(--wordmark); white-space: nowrap; }
.fl-logo__text small { font-size: 8.5px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--wordmark); opacity: .7; white-space: nowrap; }
.fl-logo--script .fl-logo__text { align-items: center; }
.fl-logo--script .fl-logo__text b { padding: 0 4px; font: 400 37px/1 var(--script); }
.fl-logo--script .fl-logo__text small { margin-top: 1px; }
.fl-logo--serif .fl-logo__text b { font: 600 31px/1 var(--serif); font-variant-numeric: lining-nums; }
.fl-logo--serif .fl-logo__text small { margin-top: 5px; }
.fl-logo--sans .fl-logo__text b { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.fl-logo--sans .fl-logo__text small { margin-top: 5px; }

.fl-catalog { flex: none; }
.fl-catbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; transition: background-color .2s, transform .15s var(--ease); }
.fl-catbtn:hover, .dd-wrap.is-open > .fl-catbtn { background: var(--accent-dark); }
.fl-catbtn:active { transform: scale(.96); }
.fl-catbtn .i { width: 20px; height: 20px; }
.fl-catalog .dd { min-width: 260px; padding: 8px; border-radius: 20px; box-shadow: 0 18px 44px rgba(var(--shade), .16), 0 2px 6px rgba(var(--shade), .06); }
.dd__item { font-weight: 500; }
.dd__item:hover { background: var(--accent-soft); color: var(--accent); }
.dd__item--more { display: none; }

.fl-search { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 15px; text-align: left; transition: border-color .2s, background-color .2s; }
.fl-search:hover { border-color: var(--accent-line); background: #fff; }
.fl-search .i { width: 19px; height: 19px; }
.fl-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fl-phone { display: flex; align-items: center; gap: 10px; flex: none; }
.fl-phone .i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background-color .2s, color .2s; }
.fl-phone > a:hover .i { background: var(--accent); color: #fff; }
.fl-phone span { display: flex; flex-direction: column; line-height: 1.25; }
.fl-phone b { font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.fl-phone small { font-size: 12px; color: var(--muted); }
.fl-phone span a:hover b { color: var(--accent); }
.dd__item--line { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }

.fl-hdr .cart-btn { height: 46px; padding: 0 18px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fl-hdr .cart-btn:hover { background: var(--accent-line); }
.cart-btn.has-items, .fl-hdr .cart-btn.has-items { background: var(--accent); color: #fff; }
.cart-btn.has-items:hover, .fl-hdr .cart-btn.has-items:hover { background: var(--accent-dark); }

/* categories under the header */
.fl-nav { position: sticky; top: var(--hdr-h); z-index: 39; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.fl-hdr.is-scrolled + .fl-nav { box-shadow: 0 10px 26px rgba(var(--shade), .07); }
.fl-nav .chips { align-items: center; gap: 4px; height: 50px; margin: 0 auto; }
.fl-nav .chip { height: 36px; padding: 0 16px; border-radius: 99px; background: none; font-size: 14.5px; font-weight: 600; color: var(--text-3); }
.fl-nav .chip:hover { background: var(--soft); }
.fl-nav .chip.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------- welcome: the showroom and the main categories ---------- */

.fl-main { padding-top: 24px; }

.fl-welcome { position: relative; height: 100%; }
.fl-welcome__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(98deg, rgba(var(--hero-shade), .9) 0%, rgba(var(--hero-shade), .78) 38%, rgba(var(--hero-shade), .38) 68%, rgba(var(--hero-shade), .12) 100%); }
.fl-welcome__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; max-width: 440px; padding: 36px 40px; color: #fff; }
.fl-welcome__pill { padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--accent); font-size: 13px; font-weight: 700; }
.fl-welcome__title { margin: 18px 0 0; font: 600 50px/1.02 var(--serif); letter-spacing: -.01em; }
.fl-welcome__lead { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.fl-welcome .fl-btn { margin-top: 26px; }
.fl-welcome--plain { overflow: hidden; background: linear-gradient(120deg, var(--accent-soft), var(--tint3)); }
.fl-welcome--plain::after { display: none; }
.fl-welcome--plain .fl-welcome__text { color: var(--ink); }
.fl-welcome--plain .fl-welcome__lead { color: var(--text-2); }
.fl-welcome--plain .fl-welcome__pill { background: #fff; }
.fl-welcome--plain .fl-btn--light, .fl-welcome--plain .fl-btn--light:hover { background: var(--accent); color: #fff; }
.fl-welcome__mark { position: absolute; right: 3%; bottom: -8%; width: auto; height: 100%; color: var(--accent-line); }

.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; height: 52px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; transition: background-color .2s, transform .15s var(--ease), box-shadow .25s; }
.fl-btn:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(var(--shade), .28); }
.fl-btn:active { transform: scale(.97); }
.fl-btn .i { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.fl-btn:hover .i:last-child { transform: translateX(3px); }
.fl-btn--light { background: #fff; color: var(--accent); }
.fl-btn--light:hover { background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }


/* ---------- what is true about the shop ---------- */

.fl-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.fl-benefits li { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s; }
.fl-benefits li:has(.fl-benefits__link):hover { border-color: var(--accent-line); }
.fl-benefits__link { position: absolute; inset: 0; border-radius: inherit; }
.fl-benefits__icon { position: relative; display: grid; place-items: center; flex: none; flex-direction: row; width: 50px; height: 50px; }
.fl-benefits__icon::before { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); }
.fl-benefits .i { position: relative; width: 38px; height: 38px; color: var(--accent); stroke-width: 1.5; }
.fl-benefits li > span:not(.fl-benefits__icon) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fl-benefits b { font-size: 15px; font-weight: 700; }
.fl-benefits small { font-size: 13px; color: var(--muted); }

/* ---------- delivery or pickup ---------- */

.mode-row.fl-mode { display: flex; align-items: center; gap: 12px; margin: 22px 0 52px; padding: 8px 8px 8px 22px; border-radius: 22px; background: var(--accent-softer); }
.fl-mode__label { flex: none; font-size: 14.5px; font-weight: 700; color: var(--text-2); }
.fl-mode .seg { flex: none; width: 300px; height: 48px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fl-mode .seg__pill { background: var(--accent); box-shadow: none; }
.fl-mode .seg__btn.is-active { color: #fff; }
.fl-mode .place-btn { flex: 1; min-width: 0; height: 48px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.fl-mode .place-btn .i:first-child { color: var(--accent); }

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

.fl-cat, .fl-info, .fl-salons { scroll-margin-top: calc(var(--hdr-h) + 68px); }
.fl-cat { position: relative; margin-bottom: 68px; }
.fl-cat__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.fl-cat__head::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 2; }
.fl-cat__head .cat__title { margin: 0; }
.cat__title { font: 600 42px/1.05 var(--serif); letter-spacing: 0; }
.cat__title, .fl-welcome__title, .fl-slide__title, .about h2, .fl-custom h2, .fl-info__card h3, .fl-salon h3, .cart__title, .smodal__title, .pm__name, .done__title, .content h1 { font-variant-numeric: lining-nums; }
.fl-cat__count { order: 3; font-size: 14px; color: var(--muted); white-space: nowrap; }

.fl-cat .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.pcard { padding: 0; border: 0; border-radius: 0; background: none; }
.pcard:hover { transform: none; box-shadow: none; }
.pcard:active { transform: none; }
.pcard__img { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--soft); }
.pcard:hover .pcard__img img.is-loaded { transform: scale(1.045); }
.pcard__labels { top: 12px; left: 12px; }
.plabel { padding: 5px 11px; border-radius: 99px; font-size: 12px; }
.plabel--off { background: var(--accent); color: #fff; }
.plabel--hit { background: var(--label-hit); color: #fff; }
.plabel--new { background: var(--label-new); }
.plabel--sale { background: #e08a3c; }
.plabel--top { background: var(--ink); }
.plabel--gift { background: #b07aa1; }
.pcard__body { padding: 14px 2px 0; }
.pcard__name { display: -webkit-box; min-height: 2.7em; overflow: hidden; font-size: 15.5px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s; }
.pcard:hover .pcard__name { color: var(--accent); }
.pcard__desc { display: none; }
.pcard__price { margin-top: 8px; font-size: 20px; font-weight: 800; }
.pcard__price s { margin-left: 2px; font-size: 14px; font-weight: 500; color: var(--muted); }
.pcard__unit { font-size: 13px; font-weight: 500; color: var(--muted); }
.pcard__foot { display: block; min-height: 0; margin-top: auto; padding-top: 12px; }

.fl-buy { width: 100%; height: 44px; border: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 14.5px; font-weight: 700; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.fl-buy:hover { background: var(--accent); color: #fff; }
.fl-buy:active { transform: scale(.97); }
.pcard__foot [data-card-stepper] { display: flex; justify-content: space-between; width: 100%; height: 44px; padding: 0 5px; border-radius: 14px; background: var(--accent); color: #fff; }
.pcard__foot [data-card-stepper]:not([hidden]) + .fl-buy { display: none; }
.pcard__foot .stepper__btn { width: 34px; height: 34px; background: rgba(255, 255, 255, .2); color: #fff; }
.pcard__foot .stepper__btn:hover { background: rgba(255, 255, 255, .32); }
.pcard__foot .stepper__val { font-weight: 700; }

/* the first cards of a long category, the rest behind «Показать все» */
.fl-more { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fl-more:not(:checked) ~ .grid .pcard:nth-child(n+9) { display: none; }
.fl-more-btn { display: flex; align-items: center; width: max-content; height: 48px; margin: 30px auto 0; padding: 0 30px; border: 1.5px solid var(--accent-line); border-radius: 99px; color: var(--accent); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s; }
.fl-more-btn:hover { border-color: var(--accent); background: var(--accent-softer); }
.fl-more:checked ~ .fl-more-btn { display: none; }
.fl-more:focus-visible ~ .fl-more-btn { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- a bouquet to order ---------- */

.fl-custom { position: relative; display: flex; align-items: center; gap: 28px; margin-bottom: 68px; padding: 34px 44px; overflow: hidden; border-radius: 28px; background: linear-gradient(105deg, var(--accent-soft), var(--tint3)); }
.fl-custom__art { flex: none; width: 190px; height: auto; }
.fl-custom__text { flex: 1; min-width: 0; }
.fl-custom h2 { margin: 0 0 8px; font: 600 36px/1.08 var(--serif); }
.fl-custom p { margin: 0; max-width: 520px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }

/* ---------- delivery and payment, the salons ---------- */

.fl-info, .fl-salons { margin-bottom: 68px; }
.fl-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fl-info__card { padding: 26px 28px; border: 1px solid var(--line); border-radius: 24px; }
.fl-info__card > .i { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.fl-info__card h3 { margin: 16px 0 10px; font: 600 26px/1.1 var(--serif); }
.fl-info__card ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; color: var(--text-3); }
.fl-info__card li small { display: block; font-size: 13px; color: var(--muted); }
.fl-info__card p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.fl-salons__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.fl-salons__photo { width: 100%; height: 100%; min-height: 300px; border-radius: 24px; object-fit: cover; }
.fl-salons__list { display: flex; flex-direction: column; gap: 16px; }
.fl-salons__grid--plain { grid-template-columns: minmax(0, 1fr); }
.fl-salons__grid--plain .fl-salons__list { flex-direction: row; flex-wrap: wrap; }
.fl-salons__grid--plain .fl-salon { flex: 1 1 300px; }
.fl-salon { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 24px; }
.fl-salon h3 { margin: 0 0 4px; font: 600 28px/1.12 var(--serif); }
.fl-salon p { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; color: var(--text-3); }
.fl-salon p .i { width: 18px; height: 18px; color: var(--accent); }
.fl-salon p a:hover { color: var(--accent); }
.fl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.fl-link .i { width: 19px; height: 19px; }
.fl-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.fl-ftr { margin-top: 20px; background: var(--accent-softer); font-size: 14.5px; color: var(--text-2); }
.fl-ftr__in { display: grid; grid-template-columns: 1.25fr .9fr 1fr 1.1fr 1.1fr; gap: 28px; padding-top: 44px; padding-bottom: 36px; }
.fl-ftr__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.fl-ftr__brand .ratings { flex-direction: column; align-items: flex-start; }
.fl-ftr__col b.fl-ftr__gap { margin-top: 14px; }
.fl-ftr__col button.fl-ftr__call { height: 40px; margin-top: 8px; padding: 0 18px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; transition: background-color .2s; }
.fl-ftr__col button.fl-ftr__call:hover { background: var(--accent-dark); color: #fff; }
.fl-ftr__legal .social-note { flex-basis: 100%; margin: 0; }
.fl-ftr__brand > img { width: 230px; height: auto; margin: -14px 0 -8px -18px; }
.fl-ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.fl-ftr__col b { margin-bottom: 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.fl-ftr__col a, .fl-ftr__col button { padding: 0; border: 0; background: none; font-size: 14.5px; color: inherit; text-align: left; transition: color .2s; }
.fl-ftr__col a:hover, .fl-ftr__col button:hover { color: var(--accent); }
.fl-ftr__col a.fl-ftr__phone { font-size: 19px; font-weight: 800; color: var(--ink); }
.fl-ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--accent-line); font-size: 13px; color: var(--muted); }

/* ---------- the program's own parts in the client's palette ---------- */

.cart__title, .smodal__title, .pm__name, .done__title { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.cart__title, .smodal__title { font-size: 32px; }
.pm__name { font-size: 32px; line-height: 1.08; }
.content h1 { font: 600 46px/1.05 var(--serif); letter-spacing: 0; }
.big-btn:hover, .buy-btn:hover { background: var(--accent-dark); }
.pm__price b { font-size: 21px; font-weight: 800; }
.point-card__radio::after { background: var(--accent); }
.tab.is-active { color: var(--accent); }
.to-top:hover { color: var(--accent); }
.notice-bar { background: var(--tint3); }
.promo-card { border-radius: 24px; }
.sr:hover, .sr:focus-visible { background: var(--accent-softer); }

/* installed app: the tabs take over the navigation */
html.app .fl-top, html.app .fl-catalog, html.app .fl-search, html.app .fl-phone { display: none; }
html.app .fl-bar { justify-content: space-between; }
html.app .fl-ftr__legal { padding-bottom: 28px; }

/* ---------- responsive ---------- */

@media (min-width: 1280px) {
    body.cart-open .fl-phone small { display: none; }
}

@media (max-width: 1180px) {
    .fl-phone small { display: none; }
    .ratings--hdr { display: none; }
    .fl-top__nav { gap: 16px; }
    .fl-ftr__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fl-ftr__brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .fl-ftr__brand .ratings { flex-direction: row; }
    .fl-welcome__title { font-size: 42px; }
}

@media (max-width: 1023px) {
    .fl-phone span { display: none; }
    .fl-top .socials { display: none; }
    .fl-cat .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fl-more:not(:checked) ~ .grid .pcard:nth-child(n+7) { display: none; }
    .fl-ftr__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-ftr__legal { padding-bottom: 96px; }
    .mode-row.fl-mode { gap: 10px; }
}

@media (max-width: 700px) {
    :root { --hdr-h: 60px; }
    html { scroll-padding-top: calc(var(--hdr-h) + 14px); }
    .fl-cat, .fl-info, .fl-salons { scroll-margin-top: calc(var(--hdr-h) + 14px); }

    .fl-top { display: none; }
    .fl-bar { gap: 8px; }
    .fl-hdr.is-scrolled { box-shadow: 0 8px 22px rgba(var(--shade), .08); }
    .fl-logo { order: 2; flex: 1; min-width: 0; gap: 2px; }
    .fl-logo__mark { height: 34px; }
    .fl-logo__mark--svg { height: 32px; }
    .fl-logo--script .fl-logo__text b { font-size: 27px; }
    .fl-logo--serif .fl-logo__text b { font-size: 23px; }
    .fl-logo--sans .fl-logo__text b { font-size: 21px; }
    .fl-logo--sans .fl-logo__text small { margin-top: 3px; }
    .fl-logo__text small { font-size: 6.5px; letter-spacing: .3em; }
    .fl-logo--serif .fl-logo__text small { margin-top: 3px; }
    .fl-ftr .fl-logo { flex: none; order: 0; }
    .fl-catalog { order: 1; }
    .fl-catbtn { width: 42px; height: 42px; padding: 0; justify-content: center; background: var(--accent-soft); color: var(--accent); }
    .fl-catbtn:hover, .dd-wrap.is-open > .fl-catbtn { background: var(--accent); color: #fff; }
    .fl-catbtn span { display: none; }
    .dd__item--more { display: block; }
    .fl-search { order: 3; flex: none; width: 42px; height: 42px; padding: 0; justify-content: center; }
    .fl-search span, .fl-phone { display: none; }
    .fl-hdr .cart-btn { order: 4; width: 42px; min-width: 42px; height: 42px; padding: 0; }
    .fl-hdr .cart-btn [data-cart-total] { display: none; }   /* the total is on the bar at the bottom of the screen */

    .fl-nav { position: static; border-top: 0; }
    .fl-nav .chips { height: 46px; gap: 2px; padding: 0 10px; }
    .fl-nav .chip { height: 34px; padding: 0 13px; font-size: 14px; }

    .fl-main { padding-top: 14px; }
    .fl-welcome__text { max-width: none; padding: 24px 22px; justify-content: flex-end; }
    .fl-welcome::after { background: linear-gradient(180deg, rgba(var(--hero-shade), .1) 0%, rgba(var(--hero-shade), .55) 45%, rgba(var(--hero-shade), .86) 100%); }
    .fl-welcome__title { margin-top: 12px; font-size: 36px; }
    .fl-welcome__lead { margin-top: 8px; font-size: 14px; }
    .fl-welcome .fl-btn { height: 46px; margin-top: 16px; padding: 0 22px; font-size: 15px; }

    .fl-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
    .fl-benefits li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; }
    .fl-benefits b { font-size: 14px; }
    .fl-benefits small { font-size: 12.5px; }

    .mode-row.fl-mode { flex-direction: column; align-items: stretch; gap: 8px; margin: 14px 0 36px; padding: 12px; border-radius: 18px; }
    .fl-mode__label { padding: 2px 4px 0; font-size: 13.5px; }
    .fl-mode .seg { width: 100%; }
    .fl-mode .place-btn { flex: none; padding: 0 14px; }

    .fl-cat { margin-bottom: 46px; }
    .fl-cat__head { gap: 10px; margin-bottom: 16px; }
    .cat__title { font-size: 31px; }
    .fl-cat__count { font-size: 13px; }
    .fl-cat .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
    .pcard { padding: 0; border-radius: 0; }
    .pcard__img { border-radius: 16px; }
    .pcard__labels { top: 8px; left: 8px; }
    .pcard__body { padding: 10px 2px 0; }
    .pcard__name { font-size: 14px; }
    .pcard__price { margin-top: 6px; font-size: 17px; }
    .pcard__price s { font-size: 12.5px; }
    .pcard__foot { padding-top: 10px; }
    .fl-buy, .pcard__foot [data-card-stepper] { height: 40px; border-radius: 12px; }
    .fl-buy { font-size: 14px; }
    .pcard__foot .stepper__btn { width: 30px; height: 30px; }
    .fl-more-btn { height: 46px; margin-top: 22px; }

    .fl-custom { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 46px; padding: 24px 20px; border-radius: 22px; }
    .fl-custom__art { position: absolute; top: 10px; right: -30px; width: 150px; opacity: .55; }
    .fl-custom h2 { position: relative; max-width: 78%; font-size: 29px; }
    .fl-custom p { position: relative; font-size: 14.5px; }
    .fl-custom .fl-btn { width: 100%; }

    .fl-info, .fl-salons { margin-bottom: 46px; }
    .fl-info__card { padding: 20px; border-radius: 20px; }
    .fl-info__card h3, .fl-salon h3 { font-size: 23px; }
    .fl-salons__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .fl-salons__photo { min-height: 0; aspect-ratio: 16 / 10; border-radius: 20px; }
    .fl-salons__list { gap: 12px; }
    .fl-salon { padding: 18px 20px; border-radius: 20px; }

    .fl-ftr__in { gap: 26px 16px; padding-top: 30px; padding-bottom: 26px; }
    .fl-ftr__brand { grid-column: 1 / -1; }
    .fl-ftr__brand > img { width: 200px; margin: -8px 0 -10px -14px; }
    .fl-ftr__brand { flex-direction: column; align-items: flex-start; gap: 14px; }
    .fl-ftr__col:last-child { grid-column: 1 / -1; }
    .fl-benefits__icon { width: 44px; height: 44px; }
    .fl-benefits .i { width: 32px; height: 32px; }

    .cart__title, .smodal__title { font-size: 28px; }
    .pm__name { font-size: 27px; }
    .content h1 { font-size: 34px; }
}

@media (max-width: 359px) {
    .fl-logo__mark { display: none; }
}

/* ---------- the top of the home page: slides (or the welcome picture) and the row of category pictures ---------- */
.hero.fl-slider { aspect-ratio: auto; height: clamp(380px, 35vw, 500px); border-radius: 28px; background: var(--accent-soft); animation: fade-up .6s var(--ease) both; }
.fl-slide { position: relative; display: block; padding: 0; border: 0; background: none; text-align: left; color: #fff; }
.fl-slide > img, .fl-slide picture, .fl-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-slide--text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(98deg, rgba(var(--hero-shade), .82) 0%, rgba(var(--hero-shade), .62) 34%, rgba(var(--hero-shade), .18) 62%, rgba(var(--hero-shade), 0) 80%); }
.fl-slide--dark.fl-slide--text::after { background: linear-gradient(98deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 34%, rgba(255, 255, 255, .2) 62%, rgba(255, 255, 255, 0) 80%); }
.fl-slide__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; max-width: 620px; padding: 40px 40px 56px 84px; }
.fl-slide__title { margin: 0; font: 600 54px/1.04 var(--serif); letter-spacing: -.01em; }
.fl-slide__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.fl-slide--dark { color: var(--ink); }
.fl-slide--dark .fl-slide__lead { color: var(--text-3); }
.fl-slide__btn { margin-top: 28px; background: #fff; color: var(--accent-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.fl-slide__btn:hover { background: #fff; color: var(--accent); }
.fl-slide--dark .fl-slide__btn { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(var(--shade), .28); }
.fl-slide--dark .fl-slide__btn:hover { background: var(--accent-dark); color: #fff; }
.fl-slider__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-50%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .25s, transform .25s var(--ease); }
.fl-slider__arrow:hover { background: rgba(255, 255, 255, .92); color: var(--accent-dark); transform: translateY(-50%) scale(1.06); }
.fl-slider__arrow svg { width: 22px; height: 22px; }
.fl-slider__arrow--prev { left: 18px; }
.fl-slider__arrow--next { right: 18px; }
.fl-slider__arrow--next svg { transform: scaleX(-1); }
.hero__dots.fl-slider__dots { left: 84px; bottom: 26px; gap: 8px; transform: none; }
.fl-slider__dots button { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.fl-slider__dots button.is-active { width: 56px; background: #fff; }
.fl-slider .fl-welcome__text { max-width: 560px; padding-left: 84px; }

.fl-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 18px; margin: 26px 0 8px; padding: 4px 2px 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.fl-cats::-webkit-scrollbar { display: none; }
.fl-cats__item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; scroll-snap-align: start; }
.fl-cats__img { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 22px; background: var(--accent-soft); box-shadow: 0 8px 22px rgba(var(--shade), .12); transition: transform .35s var(--ease), box-shadow .35s; }
.fl-cats__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.fl-cats__mark { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--accent-line); }
.fl-cats__item:hover .fl-cats__img { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(var(--shade), .18); }
.fl-cats__item:hover img { transform: scale(1.06); }
.fl-cats__item b { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.fl-cats__item:hover b { color: var(--accent); }
.fl-cats + .fl-benefits { margin-top: 26px; }

.about { margin-bottom: 68px; }
.team { margin-bottom: 68px; }

@media (max-width: 1100px) {
    .fl-slide__title { font-size: 44px; }
    .fl-slide__text, .fl-slider .fl-welcome__text { padding-left: 72px; }
    .hero__dots.fl-slider__dots { left: 72px; }
}
@media (max-width: 700px) {
    .hero.fl-slider { height: 440px; border-radius: 22px; }
    .fl-slide--text::after { background: linear-gradient(180deg, rgba(var(--hero-shade), 0) 0%, rgba(var(--hero-shade), .5) 46%, rgba(var(--hero-shade), .88) 100%); }
    .fl-slide--dark.fl-slide--text::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 46%, rgba(255, 255, 255, .94) 100%); }
    .fl-slide__text { justify-content: flex-end; max-width: none; padding: 22px 22px 48px; }
    .fl-slider .fl-welcome__text { padding-left: 22px; }
    .fl-slide__title { font-size: 34px; }
    .fl-slide__lead { margin-top: 10px; font-size: 14.5px; }
    .fl-slide__btn { height: 46px; margin-top: 16px; padding: 0 22px; font-size: 15px; }
    .fl-slider__arrow { display: none; }
    .hero__dots.fl-slider__dots { left: 22px; bottom: 20px; }
    .fl-slider__dots button { width: 22px; }
    .fl-slider__dots button.is-active { width: 36px; }
    .fl-cats { grid-auto-columns: 104px; gap: 12px; margin: 18px -16px 4px; padding: 4px 16px 8px; scroll-padding-inline: 16px; }
    .fl-cats__img { border-radius: 18px; }
    .fl-cats__item { gap: 8px; }
    .fl-cats__item b { font-size: 13px; }
    .about, .team { margin-bottom: 46px; }
}

/* ---------- the tall banner beside a catalog section ---------- */
.fl-cat--side { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.fl-cat--side > .fl-cat__head, .fl-cat--side > .fl-more-btn { grid-column: 1 / -1; }
.fl-cat--side > .grid { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-cat--side .fl-more:not(:checked) ~ .grid .pcard:nth-child(n+7) { display: none; }
.fl-side { position: sticky; top: calc(var(--hdr-h) + 70px); display: block; overflow: hidden; grid-column: 1; width: 100%; padding: 0; border: 0; aspect-ratio: 3 / 10; border-radius: 24px; background: var(--accent-soft); color: #fff; text-align: center; isolation: isolate; }
.fl-side img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.fl-side:hover img, button.fl-side:hover img { transform: scale(1.04); }
.fl-side::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; pointer-events: none; }
.fl-side__text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 120px 26px 44px; background: linear-gradient(180deg, rgba(var(--hero-shade), 0), rgba(var(--hero-shade), .78)); }
.fl-side__text b { font-size: 64px; font-weight: 800; line-height: .95; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fl-side__text small { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.fl-side__text b:only-child { font-size: 44px; }
@media (max-width: 1100px) {
    .fl-cat--side { display: block; }
    .fl-cat--side > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fl-side { position: relative; top: auto; aspect-ratio: auto; height: 220px; margin-bottom: 22px; }
    .fl-side img { object-position: 50% 35%; }
    .fl-side__text { top: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; align-content: flex-end; gap: 4px 14px; padding: 20px 30px 26px; text-align: left; background: linear-gradient(180deg, rgba(var(--hero-shade), .05), rgba(var(--hero-shade), .7)); }
    .fl-side__text b { font-size: 52px; }
    .fl-side__text b:only-child { font-size: 36px; }
}
@media (max-width: 700px) {
    .fl-cat--side > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-side { height: 170px; margin-bottom: 16px; border-radius: 20px; }
    .fl-side::after { inset: 8px; border-radius: 13px; }
    .fl-side__text { padding: 16px 22px 20px; }
    .fl-side__text b { font-size: 40px; }
    .fl-side__text b:only-child { font-size: 28px; }
    .fl-side__text small { font-size: 18px; }
}
