/* Discovery Group — header & footer navigation as plain text links.
   Tilda exported these links as Zero Block "buttons" (<a class="tn-atom">)
   with fixed-size boxes; restyle.css turns every Zero Block button into a
   pill that lifts on hover. These particular ids are plain navigation and
   must stay still: no chrome, and on hover only a thin gold underline.
   The element ids are the same on every page (header, footer, top bar),
   so the rules are not tied to a record id. */

/* ---- the link: no button chrome, let the label overflow the box ---- */
.tn-elem[data-elem-id="1706871935869"] .tn-atom, /* About */
.tn-elem[data-elem-id="1706871967595"] .tn-atom, /* Services */
.tn-elem[data-elem-id="1706871976793"] .tn-atom, /* Portfolio */
.tn-elem[data-elem-id="1706871985059"] .tn-atom, /* Contacts */
.tn-elem[data-elem-id="1707131131242"] .tn-atom, /* EN / RU */
.tn-elem[data-elem-id="1707131180905"] .tn-atom  /* phone */ {
  overflow: visible !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: underline !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  transition: text-decoration-color .2s ease, color .2s ease !important;
}

/* ---- hover / keyboard focus: gold underline, colour unchanged ---- */
.tn-elem[data-elem-id="1706871935869"] .tn-atom:hover,
.tn-elem[data-elem-id="1706871967595"] .tn-atom:hover,
.tn-elem[data-elem-id="1706871976793"] .tn-atom:hover,
.tn-elem[data-elem-id="1706871985059"] .tn-atom:hover,
.tn-elem[data-elem-id="1707131131242"] .tn-atom:hover,
.tn-elem[data-elem-id="1707131180905"] .tn-atom:hover,
.tn-elem[data-elem-id="1706871935869"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1706871967595"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1706871976793"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1706871985059"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707131131242"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707131180905"] .tn-atom:focus-visible {
  transform: none !important;
  box-shadow: none !important;
  text-decoration-color: #c4b392 !important;
}

/* ---- phones: the footer stacks the links in two left-aligned columns,
        so the label must start at the box edge instead of overflowing both sides ---- */
@media screen and (max-width: 479px) {
  .tn-elem[data-elem-id="1706871935869"] .tn-atom,
  .tn-elem[data-elem-id="1706871967595"] .tn-atom,
  .tn-elem[data-elem-id="1706871976793"] .tn-atom,
  .tn-elem[data-elem-id="1706871985059"] .tn-atom {
    text-align: left !important;
  }
}

/* =====================================================================
   "Our services" cards: the "Order" / "More" links are also Zero Block
   buttons (same element ids on the ru / en home page). They become
   plain text links with an arrow that follows the label, so any
   translation fits. The arrow images Tilda placed at fixed coordinates
   next to the old boxes are hidden; the arrow is drawn after the text.
   Hover: gold underline, arrow slides 4px to the right.
   ===================================================================== */
.tn-elem[data-elem-id="1707135696573"] .tn-atom,
.tn-elem[data-elem-id="1707135712901"] .tn-atom,
.tn-elem[data-elem-id="1707385554406"] .tn-atom,
.tn-elem[data-elem-id="1707386469764"] .tn-atom,
.tn-elem[data-elem-id="1707386469760"] .tn-atom {
  overflow: visible !important;
  white-space: nowrap !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: underline !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  transition: text-decoration-color .2s ease, color .2s ease !important;
}

/* the arrow, drawn after the label */
.tn-elem[data-elem-id="1707135696573"] .tn-atom::after,
.tn-elem[data-elem-id="1707135712901"] .tn-atom::after,
.tn-elem[data-elem-id="1707385554406"] .tn-atom::after,
.tn-elem[data-elem-id="1707386469764"] .tn-atom::after,
.tn-elem[data-elem-id="1707386469760"] .tn-atom::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 8px;
  margin-left: 8px;
  vertical-align: middle;
  background: url("/images/tild6635-3031-4364-b930-303636636263__arrow.svg") center / 13px 8px no-repeat;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}

/* Tilda's own arrow pictures sat at fixed coordinates next to the old boxes */
.tn-elem[data-elem-id="1707135696567"],
.tn-elem[data-elem-id="1707135712893"],
.tn-elem[data-elem-id="1707385596431"],
.tn-elem[data-elem-id="1707386469769"],
.tn-elem[data-elem-id="1707386469748"] {
  display: none !important;
}

/* hover / keyboard focus */
.tn-elem[data-elem-id="1707135696573"] .tn-atom:hover,
.tn-elem[data-elem-id="1707135712901"] .tn-atom:hover,
.tn-elem[data-elem-id="1707385554406"] .tn-atom:hover,
.tn-elem[data-elem-id="1707386469764"] .tn-atom:hover,
.tn-elem[data-elem-id="1707386469760"] .tn-atom:hover,
.tn-elem[data-elem-id="1707135696573"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707135712901"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707385554406"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707386469764"] .tn-atom:focus-visible,
.tn-elem[data-elem-id="1707386469760"] .tn-atom:focus-visible {
  transform: none !important;
  box-shadow: none !important;
  text-decoration-color: #c4b392 !important;
}

.tn-elem[data-elem-id="1707135696573"] .tn-atom:hover::after,
.tn-elem[data-elem-id="1707135712901"] .tn-atom:hover::after,
.tn-elem[data-elem-id="1707385554406"] .tn-atom:hover::after,
.tn-elem[data-elem-id="1707386469764"] .tn-atom:hover::after,
.tn-elem[data-elem-id="1707386469760"] .tn-atom:hover::after {
  transform: translateX(4px);
}

/* =====================================================================
   Brief / teambuilding pages: the quote under the founder's photo is a
   Zero Block "button" too, so restyle.css gave it a pill radius and a
   lift-on-hover. It is plain text; keep it still.
   ===================================================================== */
.tn-elem[data-elem-id="1707134142494"] .tn-atom,
.tn-elem[data-elem-id="1707134142494"] .tn-atom:hover {
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .tn-elem[data-elem-id="1706871935869"] .tn-atom,
  .tn-elem[data-elem-id="1706871967595"] .tn-atom,
  .tn-elem[data-elem-id="1706871976793"] .tn-atom,
  .tn-elem[data-elem-id="1706871985059"] .tn-atom,
  .tn-elem[data-elem-id="1707131131242"] .tn-atom,
  .tn-elem[data-elem-id="1707131180905"] .tn-atom,
  .tn-elem[data-elem-id="1707135696573"] .tn-atom,
  .tn-elem[data-elem-id="1707135712901"] .tn-atom,
  .tn-elem[data-elem-id="1707385554406"] .tn-atom,
  .tn-elem[data-elem-id="1707386469764"] .tn-atom,
  .tn-elem[data-elem-id="1707386469760"] .tn-atom,
  .tn-elem[data-elem-id="1707135696573"] .tn-atom::after,
  .tn-elem[data-elem-id="1707135712901"] .tn-atom::after,
  .tn-elem[data-elem-id="1707385554406"] .tn-atom::after,
  .tn-elem[data-elem-id="1707386469764"] .tn-atom::after,
  .tn-elem[data-elem-id="1707386469760"] .tn-atom::after {
    transition: none !important;
  }
}
