/* =====================================================================
   Скин «Конфетти» — 1parfume.ru «Первый парфюмерный»
   Плавающая шапка-капсула, нижняя панель как в приложении (телефон), сцена с флаконом
   и наклейками вокруг, пузыри разделов, «обычная цена / у нас», карточки-фантики с «+»,
   вопросы в виде чата, подвал-тянучка. Unbounded + Nunito. Цвета: конфетные.
   ===================================================================== */
:root {
    --bg: #FFF7EE;          --bg-rgb: 255, 247, 238;
    --surface: #FFE9F2;     --surface-2: #FFF1C9;
    --ink: #2B1640;         --ink-rgb: 43, 22, 64;
    --ink-2: #5B4870;       --muted: #9A8AAE;
    --line: rgba(43, 22, 64, .12);
    --line-strong: rgba(43, 22, 64, .28);
    --accent: #FF4F98;
    --sale: #FF3D6E;
    --pink: #FF5FA2;  --lemon: #FFE15A;  --mint: #7DE3C5;  --lilac: #BDA9FF;  --peach: #FFB38A;
    --pink-50: #FFE3EF;  --lemon-50: #FFF4C2;  --mint-50: #DDF8EF;  --lilac-50: #ECE6FF;  --peach-50: #FFE8DB;
    --radius: 18px;
    --badge-bg: var(--lemon);

    --f-display: "Unbounded", "Arial Rounded MT Bold", Arial, sans-serif;
    --f-ui: "Nunito", "Arial Rounded MT Bold", Arial, sans-serif;
    --f-logo: "Unbounded", Arial, sans-serif;
    --w-thin: 600;
    --w-ui: 500;
    --w-strong: 700;
    --w-bold: 800;
    --header-h: 64px;
}
::selection { background: var(--lemon); color: var(--ink); }
.cf-c-pink { background: var(--pink); color: #fff; }
.cf-c-lemon { background: var(--lemon); }
.cf-c-mint { background: var(--mint); }
.cf-c-lilac { background: var(--lilac); }
.cf-c-peach { background: var(--peach); }

/* ---------- типографика ---------- */
.display, .cf-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.display em, .cf-title em, .cf-hero__title em { font-style: normal; color: var(--pink); }
.cf-title { margin: 0 0 28px; font-size: clamp(26px, 3.4vw, 46px); }
.cf-kicker, .eyebrow { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }

/* ---------- кнопки ---------- */
.btn {
    border-radius: 999px; background: var(--ink); border-color: var(--ink); color: #fff; letter-spacing: .06em; font-weight: 800;
    box-shadow: 0 5px 0 var(--pink); transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(3px); box-shadow: 0 2px 0 var(--pink); }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn--ghost:hover { background: var(--lemon); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.btn--light { background: var(--lemon); color: var(--ink); border-color: var(--lemon); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.chip, .tabs__btn, .option__value, .qty, .buy__fav, .sku { border-radius: 999px; }
.tabs__btn { padding: 9px 16px; border: 2px solid var(--line-strong); font-weight: 800; letter-spacing: .04em; text-transform: none; font-size: 14px; }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: var(--lemon); border-color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="input"], input[type="search"], select, textarea { border-radius: 14px; border-width: 2px; }

/* ---------- анонс ---------- */
.announce { background: var(--pink); border: 0; }
.announce__text { color: #fff; }
.announce__text b { color: var(--lemon); }

/* ---------- шапка-капсула ---------- */
.cf-head { position: sticky; top: 12px; z-index: 40; margin-top: 12px; }
.cf-pill {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
    min-height: var(--header-h); padding: 6px 10px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 2px 0 var(--line), 0 16px 34px -24px rgba(43, 22, 64, .55);
}
.cf-head.is-scrolled .cf-pill { box-shadow: 0 2px 0 var(--line), 0 22px 40px -22px rgba(43, 22, 64, .6); }
.cf-logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-transform: lowercase; color: var(--ink); }
.cf-logo__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 18px; transform: rotate(-10deg); box-shadow: 2px 2px 0 var(--ink); }
.cf-nav .nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; list-style: none; }
.cf-nav .nav__item { position: static; }
.cf-nav .nav__link { height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cf-nav .nav__link::after { display: none; }
.cf-nav .nav__item:hover > .nav__link, .cf-nav .nav__item.is-open > .nav__link { background: var(--lemon-50); }
.cf-nav .nav__item.is-current > .nav__link { background: var(--pink); color: #fff; }
.cf-pill .flyout { top: calc(100% + 10px); border-radius: 28px; border: 0; box-shadow: 0 30px 50px -30px rgba(43, 22, 64, .5); }
.cf-pill__actions { display: flex; align-items: center; gap: 4px; }
.cf-pill__actions .icon-btn { width: 44px; height: 44px; border-radius: 50%; }
.cf-pill__actions .icon-btn:hover { background: var(--pink-50); opacity: 1; }
.cf-pill .icon-btn__count { top: 2px; right: 0; background: var(--pink); }
@media (max-width: 1023px) {
    .cf-head { top: 8px; margin-top: 8px; }
    .cf-pill { grid-template-columns: 1fr auto; padding-left: 14px; min-height: 56px; }
    .cf-logo { font-size: 19px; }
    .cf-logo__mark { width: 32px; height: 32px; font-size: 16px; }
}

/* нижняя панель на телефоне */
.cf-tabbar { display: none; }
@media (max-width: 1023px) {
    body { padding-bottom: 76px; }
    .cf-tabbar {
        position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        padding: 6px; border-radius: 26px; background: var(--ink); color: #fff; box-shadow: 0 16px 30px -12px rgba(43, 22, 64, .6);
    }
    .cf-tabbar > * { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 20px; font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, .85); }
    .cf-tabbar > *:active { background: rgba(255, 255, 255, .12); }
    .cf-tabbar .icon { width: 22px; height: 22px; }
    .cf-tabbar__count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-style: normal; font-size: 10px; line-height: 17px; text-align: center; }
    .cf-tabbar__count.is-empty { display: none; }
    .cookie-note { bottom: 92px; }
    .toast { bottom: 96px; }
    .cf-pill .hide-sm { display: none !important; }
}

/* ---------- сцена ---------- */
.cf-hero { padding: 48px 0 72px; overflow: hidden; }
.cf-hero__stage { text-align: center; }
.cf-hero__title { position: relative; z-index: 3; max-width: 980px; margin: 16px auto 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 6.4vw, 96px); line-height: 1; letter-spacing: -.04em; }
.cf-hero__title em { display: inline-block; transform: rotate(-2deg); text-decoration: underline wavy var(--lemon) 5px; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.cf-hero__center { position: relative; height: clamp(320px, 38vw, 520px); margin: -10px auto 8px; max-width: 980px; }
.cf-blob {
    position: absolute; left: 50%; top: 50%; width: min(64vw, 470px); aspect-ratio: 1; transform: translate(-50%, -50%);
    background: var(--pink); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: cf-blob 12s ease-in-out infinite alternate;
}
@keyframes cf-blob {
    0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(-50%, -50%) rotate(0); }
    100% { border-radius: 58% 42% 38% 62% / 56% 61% 39% 44%; transform: translate(-50%, -50%) rotate(16deg); }
}
.cf-hero__bottle { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(46vw, 360px); aspect-ratio: 1; transform: translate(-50%, -48%) rotate(-4deg); border-radius: 36px; background: #fff; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; transition: transform .4s var(--ease); }
.cf-hero__bottle img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.cf-hero__bottle:hover { transform: translate(-50%, -50%) rotate(2deg) scale(1.03); }
.cf-sticker {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px;
    font-family: var(--f-display); font-weight: 700; font-size: clamp(11px, 1.1vw, 15px); white-space: nowrap; color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink); animation: cf-float 5s ease-in-out infinite;
}
.cf-sticker--1 { left: 4%; top: 12%; transform: rotate(-9deg); }
.cf-sticker--2 { right: 6%; top: 8%; transform: rotate(7deg); animation-delay: -1s; }
.cf-sticker--3 { right: 2%; bottom: 22%; transform: rotate(-5deg); animation-delay: -2s; padding: 22px 18px; border-radius: 50%; white-space: normal; max-width: 120px; text-align: center; }
.cf-sticker--4 { left: 8%; bottom: 14%; transform: rotate(6deg); animation-delay: -3s; }
.cf-sticker--5 { left: 50%; bottom: -2%; transform: translateX(-50%) rotate(-3deg); animation-delay: -4s; }
@keyframes cf-float { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .cf-blob, .cf-sticker { animation: none; } }
.cf-hero__lead { max-width: 560px; margin: 28px auto 26px; font-size: 18px; color: var(--ink-2); }
.cf-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 640px) {
    .cf-hero { padding: 28px 0 48px; }
    .cf-hero__center { height: 380px; margin-top: 4px; }
    .cf-hero__bottle { width: 62vw; }
    .cf-blob { width: 82vw; }
    .cf-sticker { font-size: 11px; padding: 8px 12px; }
    .cf-sticker--1 { left: 0; top: 4%; }
    .cf-sticker--2 { right: 0; top: 2%; }
    .cf-sticker--3 { right: -2%; bottom: 18%; max-width: 96px; padding: 16px 12px; }
    .cf-sticker--4 { left: 0; bottom: 10%; }
}

/* ---------- секции ---------- */
.cf-section { padding: 64px 0; }
.cf-section--tight { padding: 32px 0; }
.cf-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.cf-head-row .cf-title { margin: 0; }

/* пузыри разделов */
.cf-bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 28px; }
.cf-bubble { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 170px; text-align: center; }
.cf-bubble__img { position: relative; display: block; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; transition: transform .3s var(--ease); }
.cf-bubble__img img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; }
.cf-bubble:nth-child(5n+1) .cf-bubble__img { background: var(--pink-50); }
.cf-bubble:nth-child(5n+2) .cf-bubble__img { background: var(--mint-50); }
.cf-bubble:nth-child(5n+3) .cf-bubble__img { background: var(--lemon-50); }
.cf-bubble:nth-child(5n+4) .cf-bubble__img { background: var(--lilac-50); }
.cf-bubble:nth-child(5n+5) .cf-bubble__img { background: var(--peach-50); }
.cf-bubble:hover .cf-bubble__img { transform: scale(1.06) rotate(-4deg); }
.cf-bubble__name { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
@media (max-width: 640px) {
    .cf-bubbles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; gap: 14px; }
    .cf-bubble { flex: none; width: 112px; }
    .cf-bubble__img { width: 112px; height: 112px; }
    .cf-bubble__name { font-size: 12px; }
}

/* обычная цена / у нас */
.cf-compare { padding: 36px; border-radius: 40px; background: var(--lilac-50); text-align: center; }
.cf-compare__title { margin-bottom: 24px; }
.cf-compare__cards { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.cf-compare__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 260px; padding: 26px 30px; border-radius: 28px; background: #fff; }
.cf-compare__card--them { transform: rotate(-3deg); opacity: .8; }
.cf-compare__card--us { transform: rotate(2deg); background: var(--lemon); box-shadow: 6px 6px 0 var(--ink); }
.cf-compare__label { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cf-compare__price { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 4px; }
.cf-compare__note { font-size: 13px; color: var(--ink-2); max-width: 240px; }
.cf-compare__vs { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--pink); }
.cf-compare__save { position: absolute; top: -18px; right: -14px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 15px; transform: rotate(12deg); box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 640px) { .cf-compare { padding: 26px 14px; border-radius: 28px; } .cf-compare__card { min-width: 0; width: 100%; } }

/* ---------- карточки-фантики ---------- */
.grid { gap: 22px 18px; }
.cfcard { padding: 10px; border-radius: 30px; transition: transform .25s var(--ease); }
.grid > .cfcard:nth-child(5n+1), .rail__track > .cfcard:nth-child(5n+1) { background: var(--pink-50); }
.grid > .cfcard:nth-child(5n+2), .rail__track > .cfcard:nth-child(5n+2) { background: var(--mint-50); }
.grid > .cfcard:nth-child(5n+3), .rail__track > .cfcard:nth-child(5n+3) { background: var(--lemon-50); }
.grid > .cfcard:nth-child(5n+4), .rail__track > .cfcard:nth-child(5n+4) { background: var(--lilac-50); }
.grid > .cfcard:nth-child(5n+5), .rail__track > .cfcard:nth-child(5n+5) { background: var(--peach-50); }
.cfcard:nth-child(odd):hover { transform: rotate(-1.5deg) translateY(-4px); }
.cfcard:nth-child(even):hover { transform: rotate(1.5deg) translateY(-4px); }
.cfcard .card__media { border-radius: 22px; background: #fff; }
.cfcard .card__body { padding: 12px 6px 4px; gap: 4px; }
.cfcard .card__brand { color: var(--pink); font-weight: 800; font-size: 11px; letter-spacing: .12em; }
.cfcard .card__name { font-family: var(--f-ui); font-weight: 800; font-size: 17px; line-height: 1.25; }
.cfcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 8px; }
.cfcard .card__price { margin: 0; padding: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.cfcard .card__price .price { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.cfcard__buy, .cfcard__buy.is-added {
    flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50% !important; background: var(--ink); border: 0; color: #fff;
    box-shadow: 0 4px 0 var(--pink); transition: transform .15s, box-shadow .15s, background .2s;
}
.cfcard__buy:hover { background: var(--pink); color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.cfcard__buy.is-added { background: var(--mint); color: var(--ink); }
.cfcard__buy .icon { width: 22px; height: 22px; stroke-width: 2; }
.badge { padding: 6px 10px 5px; border-radius: 999px; background: var(--lemon); color: var(--ink); font-weight: 800; letter-spacing: .04em; transform: rotate(-7deg); box-shadow: 2px 2px 0 var(--ink); }
.badge--sale { background: var(--pink); color: #fff; padding: 6px 10px 5px; font-size: 12px; transform: rotate(5deg); }
.cfcard .card__fav { top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff; opacity: 1; color: var(--pink); }
@media (hover: none), (max-width: 760px) {
    .grid { gap: 12px 10px; }
    .cfcard { padding: 7px; border-radius: 24px; }
    .cfcard .card__name { font-size: 14px; }
    .cfcard .card__price .price { font-size: 16px; }
    .cfcard__buy { width: 40px; height: 40px; border-radius: 50% !important; background: var(--ink); color: #fff; }
}

/* ---------- вопросы-чат ---------- */
.cf-chat-wrap { background: var(--mint-50); }
.cf-chat-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.cf-chat { display: flex; flex-direction: column; gap: 10px; }
.cf-msg { position: relative; max-width: 78%; margin: 0; padding: 14px 18px; border-radius: 24px; font-size: 16px; line-height: 1.45; }
.cf-msg--q { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; font-weight: 700; }
.cf-msg--a { align-self: flex-start; display: flex; gap: 10px; align-items: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 10px 20px -18px rgba(43, 22, 64, .6); }
.cf-msg__ava { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 13px; }
@media (max-width: 860px) { .cf-chat-grid { grid-template-columns: 1fr; gap: 24px; } .cf-msg { max-width: 92%; font-size: 15px; } }

/* ---------- наклейки-преимущества ---------- */
.cf-perks { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cf-perk { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 28px; box-shadow: 4px 4px 0 var(--ink); }
.cf-perk--1 { background: var(--lemon); transform: rotate(-1.5deg); }
.cf-perk--2 { background: var(--mint); transform: rotate(1deg); }
.cf-perk--3 { background: var(--lilac); transform: rotate(-.5deg); }
.cf-perk--4 { background: var(--peach); transform: rotate(1.5deg); }
.cf-perk b { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.cf-perk span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .cf-perks { grid-template-columns: 1fr 1fr; } }

/* ---------- бренды-леденцы ---------- */
.cf-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cf-brands a { padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--line-strong); font-family: var(--f-display); font-weight: 600; font-size: 15px; transition: transform .2s, background .2s; }
.cf-brands a:nth-child(4n+1):hover { background: var(--pink-50); }
.cf-brands a:nth-child(4n+2):hover { background: var(--mint-50); }
.cf-brands a:nth-child(4n+3):hover { background: var(--lemon-50); }
.cf-brands a:nth-child(4n+4):hover { background: var(--lilac-50); }
.cf-brands a:hover { transform: translateY(-3px) rotate(-2deg); }
.seo-text { margin: 24px auto 40px; }

/* ---------- подвал-тянучка ---------- */
.cf-foot { margin-top: 48px; padding-top: 64px; background: #2B1640; color: #FFF7EE; border-radius: 48px 48px 0 0; }
.cf-foot--order { padding-top: 0; }
.cf-foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-bottom: 40px; }
.cf-logo--foot { color: #FFF7EE; font-size: 34px; }
.cf-logo--foot .cf-logo__mark { width: 50px; height: 50px; font-size: 24px; box-shadow: 3px 3px 0 var(--lemon); }
.cf-foot__brand p { max-width: 340px; margin: 18px 0 22px; font-size: 14px; color: rgba(255, 247, 238, .75); }
.cf-foot__col h4 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--lemon); }
.cf-foot__col ul { list-style: none; display: grid; gap: 8px; font-size: 14px; color: rgba(255, 247, 238, .8); }
.cf-foot a:hover { color: var(--lemon); }
.cf-foot__phone { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: #fff; }
.cf-foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 247, 238, .15); font-size: 12px; color: rgba(255, 247, 238, .55); }
@media (max-width: 860px) { .cf-foot__grid { grid-template-columns: 1fr 1fr; } .cf-foot__brand { grid-column: 1 / -1; } .cf-foot { border-radius: 32px 32px 0 0; } }

/* ---------- каталог и товар ---------- */
.category__title, .pdp__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; }
.buy__current { font-family: var(--f-display); font-weight: 800; }
.gallery__main { border-radius: 32px; background: var(--pink-50); }
.gallery__thumb { border-radius: 14px; }
.pdp__note { border-radius: 20px; background: var(--lemon-50); }
.drawer__panel { border-radius: 0 28px 28px 0; }
.drawer__group summary, .drawer__link { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.toolbar { border: 0; background: #fff; border-radius: 999px; padding: 10px 18px; }
