/* The bottom stack of the landing: the trial pill (pages/landing/trial-dock.js) comes up once the hero button is gone
   under the topbar, with .is-following on the pill; the cookie notice sits under it until «Понятно». The page gets
   room for the pill, so the footer is never covered for good. */
body:has(.trial-dock) { padding-bottom: 96px; }
.landing-bottom { position: fixed; z-index: 30; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, calc(100% - 32px)); translate: -50% 0; pointer-events: none; }
.landing-bottom > * { pointer-events: auto; }

.trial-dock { display: flex; align-items: center; gap: 12px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #1c1c1cdb; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px #000; opacity: 0; translate: 0 calc(100% + 40px); visibility: hidden; transition: translate .55s var(--intro-ease), opacity .3s ease, visibility 0s linear .55s; }
.trial-dock.is-following { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }

/* the face rises inside its circle the first time the pill comes up (shared/face.js, .is-tucked) */
.trial-dock-face { display: grid; flex: none; place-items: end center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #2a2a2a; }
.trial-dock-face .face { margin: 0 0 -4px; font-size: 30px; }
.trial-dock-text { display: flex; flex-direction: column; min-width: 0; padding-right: 8px; line-height: 1.25; }
.trial-dock-text b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.trial-dock-text small { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* the cookie notice keeps its look and leaves the placing to the stack */
.landing-bottom .cookie-notice { position: static; width: 100%; transform: none; animation-name: landing-bottom-in; }
@keyframes landing-bottom-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 760px) {
  .landing-bottom { width: calc(100% - 24px); }
  .trial-dock { align-self: stretch; gap: 10px; }
  .trial-dock-text { flex: 1; padding-right: 0; }
  .trial-dock .pill { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .trial-dock { transition: none; }
}

/* The quiet card of the trial that opens the plans: their surface and corners, the title at the size of a plan name,
   the face without its circle. It lies over the plans, so the pill growing into it from below passes over them
   (pages/landing/trial-offer.js). The background is a layer of its own, so the pill can grow into it. */
.trial-offer { position: relative; z-index: 1; isolation: isolate; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 20px 22px 20px 24px; }
.trial-offer-bg { position: absolute; z-index: -1; inset: 0; border-radius: 28px; background: #121212; }
.trial-offer-face { display: grid; flex: none; place-items: center; border-radius: 50%; }
.trial-offer-face .face { font-size: 36px; }
.trial-offer-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.trial-offer-text b { font-size: clamp(16px, 1.8cqi, 20px); font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.trial-offer-text > span { color: var(--muted); font-size: 15px; }
.trial-offer .pill { flex: none; min-height: 44px; padding: 0 22px; font-size: 15px; }

/* while the pill turns into the card it plays the pill: the pill itself goes and comes back at once */
.is-trial-turning .landing-bottom .trial-dock { visibility: hidden; transition: none; }

/* the pill slides away as it always does while the card holds the trial, and stays seen while it slides */
.is-trial-landed .landing-bottom .trial-dock { opacity: 0; translate: 0 calc(100% + 40px); visibility: hidden; transition-delay: 0s, 0s, .55s; }

/* the place of the card stays empty while the pill holds the trial */
.trial-offer.is-waiting { visibility: hidden; }

@media (max-width: 760px) {
  .trial-offer { margin-bottom: 10px; padding: 16px 16px 16px 18px; }
  .trial-offer-face .face { font-size: 30px; }
  .trial-offer-text > span { font-size: 13px; }

  /* the whole sentence does not fit next to the button */
  .trial-offer-more { display: none; }
  .trial-offer .pill { padding: 0 18px; }
}
