/* Telegram Ads: illustrated stages supplied for the page mockup. */
html body.dn9-document--reklama-v-telegram #process.telegram-process {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5.25rem;
  padding: clamp(2.5rem, 2.3vw, 2.75rem) 0 clamp(3.5rem, 4vw, 4.5rem) !important;
  border-bottom: 1px solid #edf0ee;
  background: #fff !important;
  color: #0c1015;
}

html body.dn9-document--reklama-v-telegram #process > .telegram-process__shell {
  position: relative;
  width: min(calc(100% - clamp(2rem, 6.3vw, 7rem)), 104rem) !important;
  max-width: 104rem !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

#process .telegram-process__intro {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  padding-left: clamp(0px, 1.1vw, 1.25rem);
}

#process .telegram-process__eyebrow {
  margin: 0 0 1.25rem;
  color: #438565;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}

#process .telegram-process__intro h2 {
  max-width: none;
  margin: 0;
  color: #0c1015;
  text-wrap: balance;
}

#process .telegram-process__intro h2 span {
  display: block;
  color: #16a34a;
  -webkit-text-fill-color: #16a34a;
}

#process .telegram-process__lead {
  max-width: 48rem;
  margin: .8rem 0 0;
  color: #526070;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

#process .telegram-process__plane { display: none !important; 
  position: absolute;
  z-index: 1;
  top: 3.5rem;
  right: 1.5rem;
  width: clamp(15rem, 21vw, 22rem);
  height: clamp(11rem, 16vw, 16rem);
  overflow: hidden;
  pointer-events: none;
}

#process .telegram-process__plane img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

#process .telegram-process__timeline {
  position: relative;
  margin-top: clamp(2.5rem, 2.8vw, 3.25rem);
}

#process .telegram-process__wave { display: none !important; 
  position: absolute;
  z-index: 0;
  top: -8.5rem;
  left: -5%;
  width: 110%;
  height: 20rem;
  overflow: visible;
  pointer-events: none;
}

#process .telegram-process__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.75rem, 1.2vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

#process .telegram-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 30rem;
  padding: .75rem clamp(1rem, 1.75vw, 2rem) 2rem;
  border: 1px solid #e7ece9;
  border-radius: 2.5rem;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 35px rgba(12,16,21,.025);
}

#process .telegram-process__step:not(:last-child)::after {
  position: absolute;
  z-index: 3;
  top: 45%;
  right: -1.5rem;
  width: 1.05rem;
  height: 1.05rem;
  border-top: .48rem solid #6fe973;
  border-right: .48rem solid #6fe973;
  border-radius: .2rem;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 1px 2px rgba(22,163,74,.14));
}

#process .telegram-process__number {
  position: absolute;
  z-index: 2;
  top: -.55rem;
  left: .55rem;
  display: grid;
  place-items: center;
  width: clamp(3.8rem, 4.4vw, 4.8rem);
  height: clamp(3.8rem, 4.4vw, 4.8rem);
  border-radius: 50%;
  background: #e6ffe8;
  color: #096019;
  font-size: clamp(1.45rem, 1.7vw, 1.95rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

#process .telegram-process__step > img {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  width: calc(100% + 2.5rem);
  max-width: none;
  height: clamp(15rem, 16vw, 17rem);
  margin: .5rem -1.25rem .7rem;
  object-fit: contain;
}

#process .telegram-process__step-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

#process .telegram-process__step-copy h3 {
  margin: 0 0 .45rem;
  color: #0c1015;
  text-wrap: balance;
}

#process .telegram-process__step-copy p {
  max-width: 30ch;
  margin: 0;
  color: #4f5964;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: normal;
  hyphens: manual;
}

@media (max-width: 1250px) {
  #process .telegram-process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  #process .telegram-process__step { min-height: 27rem; }
  #process .telegram-process__step:not(:last-child)::after { display: none; }
  #process .telegram-process__wave { display: none !important;  opacity: .4; }
  #process .telegram-process__plane { display: none !important;  opacity: .55; }
}

@media (max-width: 800px) {
  #process .telegram-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #process .telegram-process__plane { display: none !important;  display: none; }
  #process .telegram-process__timeline { margin-top: 2.5rem; }
  #process .telegram-process__wave { display: none !important;  display: none; }
}

@media (max-width: 600px) {
  html body.dn9-document--reklama-v-telegram #process.telegram-process { padding-block: 3rem !important; }
  html body.dn9-document--reklama-v-telegram #process.telegram-process:target { padding-top: 5.5rem !important; }
  html body.dn9-document--reklama-v-telegram #process > .telegram-process__shell {
    width: calc(100% - 2rem) !important;
  }
  #process .telegram-process__intro { padding-left: 0; }
  #process .telegram-process__eyebrow { margin-bottom: 1rem; font-size: .75rem; }
  #process .telegram-process__intro h2 br { display: none; }
  #process .telegram-process__lead { margin-top: 1.1rem; }
  #process .telegram-process__steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #process .telegram-process__step {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-height: 13rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
  #process .telegram-process__number { top: .65rem; left: .65rem; width: 2.7rem; height: 2.7rem; font-size: 1rem; }
  #process .telegram-process__step > img { grid-column: 1; width: 100%; height: 10rem; margin: 1rem 0 0; }
  #process .telegram-process__step-copy { grid-column: 2; margin-top: 0; }
}

@media (max-width: 370px) {
  #process .telegram-process__step { grid-template-columns: 1fr; }
  #process .telegram-process__step > img { height: 12rem; }
  #process .telegram-process__step-copy { grid-column: 1; }
}
