:root {
  --flavor-a: #e91e63;
  --flavor-b: #fff8e1;
  --flavor-ink: #101113;
  --flavor-paper: #efeee9;
}

.flavors-page { background: var(--flavor-ink); }
.flavors-page #nav { border-bottom-color: rgba(255,255,255,.12); }
.flavor-breadcrumbs { position:absolute; z-index:5; top:108px; left:max(52px,calc((100vw - 1336px)/2)); display:flex; gap:9px; color:#777a80; font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.flavor-breadcrumbs a { color:inherit; text-decoration:none; }

.flavor-hero {
  min-height: 100svh;
  padding: 112px 52px 42px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.72fr);
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 25% 100%,
    #090a0b;
}

.flavor-ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; filter: saturate(1.15); }
.flavor-ambient i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .24; transition: background 900ms ease; }
.flavor-ambient i:nth-child(1) { width: 42vw; height: 42vw; right: 4vw; top: 18%; background: var(--flavor-a); animation: flavorFloat 12s ease-in-out infinite alternate; }
.flavor-ambient i:nth-child(2) { width: 30vw; height: 30vw; right: 24vw; top: 46%; background: var(--flavor-b); animation: flavorFloat 15s ease-in-out -4s infinite alternate-reverse; }
.flavor-ambient i:nth-child(3) { width: 18vw; height: 18vw; left: -6vw; bottom: 4%; background: var(--flavor-a); opacity: .1; }

.flavor-hero-top { grid-column: 1/-1; display: flex; justify-content: flex-end; align-items: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.flavor-counter { display: flex; align-items: center; gap: 10px; }
.flavor-counter span { color: #fff; font-size: 14px; letter-spacing: -.02em; }

.flavor-hero-copy { align-self: center; position: relative; z-index: 2; }
.flavor-hero h1 { font-family: var(--font-display); font-size: clamp(74px, 10.2vw, 174px); line-height: .76; letter-spacing: -.075em; font-weight: 700; }
.flavor-hero h1 span, .flavor-hero h1 strong { display: block; }
.flavor-hero h1 strong { margin-left: .42em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.62); }
.flavor-hero-copy > p { width: min(430px,80%); margin: 46px 0 0 7%; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.64); }

.flavor-orbit { width: min(40vw,580px); aspect-ratio: 1; place-self: center; position: relative; display: grid; place-items: center; }
.flavor-orbit-ring { position: absolute; inset: 2%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: orbitSpin 24s linear infinite; }
.flavor-orbit-ring::before, .flavor-orbit-ring::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.flavor-orbit-ring::before { left: 11%; top: 16%; }
.flavor-orbit-ring::after { right: 2%; bottom: 37%; background: var(--flavor-a); box-shadow: 0 0 24px var(--flavor-a); }
.flavor-orb { width: 68%; aspect-ratio: 1; border-radius: 44% 56% 62% 38% / 46% 38% 62% 54%; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 22%, #fff 0 2%, rgba(255,255,255,.5) 4%, transparent 24%), linear-gradient(145deg,var(--flavor-b),var(--flavor-a) 58%,#18060e); box-shadow: inset -30px -36px 70px rgba(0,0,0,.35), inset 18px 20px 40px rgba(255,255,255,.24), 0 36px 120px color-mix(in srgb,var(--flavor-a) 44%,transparent); transform: rotate(-12deg); transition: background 900ms ease, box-shadow 900ms ease; animation: orbMorph 9s ease-in-out infinite alternate; }
.flavor-orb::before { content: ''; position: absolute; inset: 8% 42% 46% 14%; border-radius: 50%; background: rgba(255,255,255,.27); filter: blur(18px); transform: rotate(-25deg); }
.flavor-orb span { position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 65% 65%, transparent 0 16px, rgba(255,255,255,.045) 17px, transparent 18px); mix-blend-mode: overlay; }
.flavor-orbit-name { position: absolute; right: -1%; bottom: 19%; font-size: clamp(20px,2.1vw,32px); font-weight: 500; line-height: .95; letter-spacing: -.045em; text-align: right; transition: opacity .25s ease; }
.orbit-note { position: absolute; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; font-size: 9px; letter-spacing: .15em; color: rgba(255,255,255,.68); }
.orbit-note-a { left: -2%; top: 29%; }
.orbit-note-b { right: 13%; top: 6%; }

.flavor-scroll { align-self: end; display: inline-flex; width: max-content; gap: 22px; align-items: center; color: #fff; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.flavor-scroll i { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; font-style: normal; transition: background .25s,color .25s; }
.flavor-scroll:hover i { background: #fff; color: #111; }
.flavor-marquee { position: absolute; inset: auto 0 0; border-top: 1px solid rgba(255,255,255,.12); height: 28px; overflow: hidden; color: rgba(255,255,255,.32); font-size: 9px; letter-spacing: .18em; line-height: 28px; white-space: nowrap; }
.flavor-marquee div { width: max-content; animation: flavorMarquee 28s linear infinite; }

.flavor-intro { background: var(--flavor-paper); color: #151618; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.72fr); gap: 6vw; padding-top: 150px; padding-bottom: 150px; }
.flavor-section-no { font-size: 10px; letter-spacing: .18em; color: #777a7f; text-transform: uppercase; }
.flavor-intro h1, .collection-header h2, .flavor-outro h2 { font-size: clamp(48px,7vw,110px); line-height: .9; letter-spacing: -.065em; font-weight: 400; }
.flavor-intro h1 em, .collection-header h2 em, .flavor-outro h2 em { font-family: Georgia,serif; font-weight: 400; color: #77746f; }
.flavor-intro h1 + p { max-width: 530px; margin-top: 45px; color: #65676b; font-size: 17px; line-height: 1.65; }
.series-index { border-top: 1px solid rgba(15,16,18,.18); }
.series-index a { min-height: 86px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; color: #151618; border-bottom: 1px solid rgba(15,16,18,.18); text-decoration: none; transition: padding .3s var(--ease-out),color .3s,background .3s; }
.series-index a:hover { padding-inline: 14px; color: #fff; background: #151618; }
.series-index span, .series-index small { color: #898b8e; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.series-index strong { font-size: 22px; font-weight: 500; }

.flavor-collection { background: var(--flavor-paper); color: #151618; padding-top: 20px; }
.collection-header { display: grid; grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid rgba(15,16,18,.18); padding-top: 80px; }
.collection-header .flavor-section-no { margin-bottom: 28px; }
.collection-status { display: flex; align-items: end; gap: 12px; padding-bottom: 10px; }
.collection-status strong { font-size: clamp(58px,7vw,96px); font-weight: 300; line-height: .8; letter-spacing: -.07em; }
.collection-status span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.35; color: #777a7f; }

.flavor-controls { position: sticky; top: 66px; z-index: 20; display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; margin: 70px -52px 0; padding: 10px 52px; background: rgba(239,238,233,.94); border-top: 1px solid rgba(15,16,18,.14); border-bottom: 1px solid rgba(15,16,18,.14); backdrop-filter: blur(18px); }
.filter-group { display: flex; align-items: center; gap: 20px; min-width: 0; }
.filter-group > span { flex: 0 0 auto; color: #85878a; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.filter-row { display: flex; gap: 5px; min-width: 0; }
.filter-row button { min-height: 34px; padding: 0 15px; border: 1px solid rgba(15,16,18,.16); border-radius: 100px; background: transparent; color: #4e5053; font: 500 9px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .25s,color .25s,border-color .25s,transform .25s; }
.filter-row button:hover { border-color: #151618; }
.filter-row button:active { transform: scale(.96); }
.filter-row button.is-active { background: #151618; border-color: #151618; color: #fff; }

.flavor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: rgba(15,16,18,.17); border: 1px solid rgba(15,16,18,.17); margin-top: 38px; }
.flavor-card { --c1:#777; --c2:#bbb; background: var(--flavor-paper); min-width: 0; position: relative; overflow: hidden; animation: cardIn .5s var(--ease-out) both; }
.flavor-card[hidden] { display: none; }
.flavor-card-visual { display: block; position: relative; aspect-ratio: 1.22; overflow: hidden; background: #d9d8d2; }
.flavor-card-visual::before { content: ''; position: absolute; inset: -22%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.88) 0 2%, transparent 18%), radial-gradient(circle at 67% 70%,var(--c1),transparent 43%), radial-gradient(circle at 31% 45%,var(--c2),transparent 48%), linear-gradient(145deg,color-mix(in srgb,var(--c2) 35%,#efeee9),color-mix(in srgb,var(--c1) 30%,#18191b)); filter: saturate(1.08); transition: transform .8s var(--ease-out),filter .5s; }
.flavor-card-visual::after { content: ''; position: absolute; width: 44%; aspect-ratio: 1; left: 28%; top: 24%; border-radius: 46% 54% 67% 33% / 47% 37% 63% 53%; background: radial-gradient(circle at 28% 20%,rgba(255,255,255,.85),transparent 17%),linear-gradient(145deg,var(--c2),var(--c1)); box-shadow: inset -22px -24px 40px rgba(0,0,0,.22), inset 10px 10px 24px rgba(255,255,255,.25),0 26px 50px color-mix(in srgb,var(--c1) 34%,transparent); transform: rotate(-12deg); transition: transform .75s var(--ease-out),border-radius .75s var(--ease-out); }
.flavor-card.has-image .flavor-card-visual::after { display: none; }
.flavor-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .8s var(--ease-out),filter .5s; }
.flavor-card[data-device="atlas"].has-image .flavor-card-visual { background: #f3f2ef; }
.flavor-card[data-device="atlas"].has-image .flavor-card-visual::before { display: none; }
.flavor-card[data-device="atlas"] .flavor-card-image { object-fit: cover; filter: none; }
.flavor-card:hover .flavor-card-visual::before { transform: scale(1.13) rotate(4deg); filter: saturate(1.25); }
.flavor-card:hover .flavor-card-visual::after { transform: scale(1.14) rotate(9deg); border-radius: 57% 43% 38% 62% / 46% 63% 37% 54%; }
.flavor-card:hover .flavor-card-image { transform: scale(1.055); filter: saturate(1.08); }
.flavor-card[data-device="atlas"]:hover .flavor-card-image { filter: none; }
.flavor-card-device { position: absolute; left: 17px; top: 17px; z-index: 2; padding: 7px 10px; border-radius: 99px; background: rgba(15,16,18,.78); color: #fff; font-size: 9px; letter-spacing: .13em; backdrop-filter: blur(8px); }
.flavor-card-number { position: absolute; right: 17px; top: 16px; z-index: 2; color: rgba(255,255,255,.78); font-size: 10px; letter-spacing: .08em; mix-blend-mode: difference; }
.flavor-card-copy { min-height: 94px; padding: 23px 24px 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.flavor-card-copy h3 { max-width: 250px; font-size: clamp(19px,1.55vw,25px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.flavor-card-copy p { align-self: start; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: #74767a; }
.flavor-swatches { align-self: end; display: flex; }
.flavor-swatches i { width: 20px; height: 20px; border-radius: 50%; background: var(--swatch); border: 2px solid var(--flavor-paper); margin-left: -6px; }
.flavor-empty { padding: 80px 0; text-align: center; color: #6f7174; }
.flavor-noscript { padding: 40px 0; max-width: 900px; }
.flavor-noscript p { margin-top: 15px; }

.flavor-outro { position: relative; min-height: 100svh; background: #090a0b; color: #fff; overflow: hidden; isolation: isolate; }
.outro-glow { position: absolute; width: 80vw; height: 70vw; left: 10%; top: 25%; z-index: -1; background: conic-gradient(from 90deg,#e91e63,#8bc34a,#ff9800,#6a1b9a,#e91e63); filter: blur(140px); opacity: .12; animation: orbitSpin 24s linear infinite; }
.flavor-outro .flavor-section-no { color: rgba(255,255,255,.45); }
.flavor-outro h2 { margin-top: 0; max-width: 1040px; }
.flavor-outro h2 em { color: rgba(255,255,255,.46); }
.outro-devices { height: 52vh; min-height: 440px; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 55px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.outro-devices a { min-width: 0; position: relative; display: flex; justify-content: center; align-items: center; border-right: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; overflow: hidden; }
.outro-devices a:last-child { border-right: 0; }
.outro-devices img { width: 72%; height: 82%; object-fit: contain; filter: drop-shadow(0 25px 36px rgba(0,0,0,.4)); transition: transform .65s var(--ease-out); }
.outro-devices span { position: absolute; inset: auto 22px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .14em; }
.outro-devices i { font-style: normal; font-size: 20px; transition: transform .3s; }
.outro-devices a:hover img { transform: translateY(-15px) scale(1.04); }
.outro-devices a:hover i { transform: translateX(5px); }

@keyframes flavorFloat { to { transform: translate3d(-8%,10%,0) scale(1.1); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbMorph { 0% { border-radius: 44% 56% 62% 38% / 46% 38% 62% 54%; transform: rotate(-12deg) scale(.98); } 100% { border-radius: 57% 43% 38% 62% / 52% 61% 39% 48%; transform: rotate(7deg) scale(1.04); } }
@keyframes flavorMarquee { to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }

@media (max-width: 1080px) {
  .flavor-hero { grid-template-columns: 1fr .8fr; }
  .flavor-intro { grid-template-columns: 1fr 2fr; }
  .flavor-intro .series-index { grid-column: 2; }
  .flavor-controls { grid-template-columns: 1fr; gap: 10px; }
  .flavor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .flavor-breadcrumbs { top:88px; left:20px; }
  .flavor-hero { min-height: 830px; padding: 90px 20px 52px; display: block; background: linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0 / 50% 100%,#090a0b; }
  .flavor-hero-top { display: flex; }
  .flavor-counter { gap: 6px; }
  .flavor-hero-copy { margin-top: 12vh; }
  .flavor-hero h1 { font-size: clamp(61px,20.5vw,92px); }
  .flavor-hero h1 strong { margin-left: .12em; }
  .flavor-hero-copy > p { width: 76%; margin: 28px 0 0 0; font-size: 14px; }
  .flavor-orbit { position: absolute; width: 68vw; right: -15vw; bottom: 74px; }
  .flavor-orbit-name { right: auto; left: -22vw; bottom: 15%; width: 132px; font-size: 19px; text-align: left; }
  .orbit-note-a { display: none; }
  .orbit-note-b { right: auto; left: 2%; top: 5%; }
  .flavor-scroll { position: absolute; left: 20px; bottom: 60px; }
  .flavor-scroll span { display: none; }
  .flavor-intro { display: block; padding-top: 132px; padding-bottom: 90px; }
  .flavor-intro > div:nth-child(2) { margin-top: 54px; }
  .flavor-intro h1, .collection-header h2, .flavor-outro h2 { font-size: clamp(46px,14vw,68px); }
  .flavor-intro h1 + p { margin-top: 30px; font-size: 15px; }
  .series-index { margin-top: 60px; }
  .series-index a { min-height: 72px; }
  .collection-header { padding-top: 60px; grid-template-columns: 1fr; gap: 42px; }
  .collection-status { justify-self: end; }
  .flavor-controls { top: 74px; margin: 48px -20px 0; padding: 7px 20px 9px; gap: 4px; }
  .filter-group { display: flex; gap: 8px; }
  .filter-group > span { width: 44px; margin: 0; }
  .filter-row-scroll { overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .filter-row-scroll::-webkit-scrollbar { display: none; }
  .filter-row button { min-height: 38px; padding: 0 13px; font-size: 9px; white-space: nowrap; }
  .flavor-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .flavor-card-visual { aspect-ratio: 1.35; }
  .flavor-card-copy { min-height: 86px; padding: 19px 18px 16px; }
  .flavor-card-copy h3 { font-size: 23px; }
  .flavor-outro { padding-top: 84px; }
  .outro-devices { height: auto; min-height: 0; grid-template-columns: 1fr; margin-top: 44px; }
  .outro-devices a { height: 390px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .outro-devices a:last-child { border-bottom: 0; }
  .outro-devices img { width: 70%; height: 82%; }
}

@media (max-width: 420px) {
  .flavor-kicker { max-width: 150px; line-height: 1.4; }
  .flavor-counter { font-size: 0; }
  .flavor-counter span { font-size: 12px; }
  .flavor-counter span:first-child::after { content:' СЕРИИ'; font-size:8px; color:rgba(255,255,255,.55); margin-left:4px; }
  .flavor-counter span:last-child::after { content:' ВКУСОВ'; font-size:8px; color:rgba(255,255,255,.55); margin-left:4px; }
  .flavor-orbit { width: 76vw; right: -21vw; }
}

@media (prefers-reduced-motion: reduce) {
  .flavor-ambient i, .flavor-orbit-ring, .flavor-orb, .flavor-marquee div, .outro-glow { animation: none !important; }
  .flavor-card { animation: none; }
}
