
/* Правило сайта: без эмодзи в навигации и ссылках.
   Стрелки ссылок рисуем в CSS под углом 45° на всех экранах. */
html body a.cifra-arrow-link::after,
html body .uhead .ulinks a.cifra-arrow-link::after {
  content: "" !important;
  display: inline-block !important;
  position: static !important;
  flex: 0 0 auto;
  width: .72em;
  height: .72em;
  margin-inline-start: .5em;
  vertical-align: .02em;
  background:
    linear-gradient(currentColor,currentColor) right top / 65% 1px,
    linear-gradient(currentColor,currentColor) right top / 1px 65%,
    linear-gradient(-45deg,transparent 45%,currentColor 46% 54%,transparent 55%);
  background-repeat: no-repeat;
  border: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Номер, название и стрелка в одной строке. */
html body .hero-console .console-links a.cifra-arrow-link {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center;
  column-gap: .75em;
}
html body .hero-console .console-links a.cifra-arrow-link > span:nth-child(3) {
  display: none !important;
}
html body .hero-console .console-links a.cifra-arrow-link::after {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0 !important;
}

html body .portfolio-grid {
  align-items: stretch !important;
}
html body .portfolio-grid > .portfolio-card {
  display: flex !important;
  flex-direction: column !important;
}
html body .portfolio-grid > .portfolio-card > .portfolio-actions {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid rgba(127, 127, 127, .3) !important;
}
html body .portfolio-grid > .portfolio-card > .portfolio-actions > a {
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

/* Правило сайта: в верхнем меню стрелки не используются. */
html body header.uhead .ulinks a::before,
html body header.uhead .ulinks a::after {
  content: none !important;
  display: none !important;
}

html body header.uhead .ulinks a[href$="#contact"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body header.uhead .ulinks a[href$="#contact"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Mobile: cards have only text links, without CSS arrows, emoji or pictograms. */
@media(max-width:900px){
 html body main :is(.portfolio-card,.product-card,.project-card,.card)
 a.cifra-arrow-link::after,
 html body main :is(.portfolio-card,.product-card,.project-card,.card)
 a.cifra-arrow-link::before{
  content:none!important;display:none!important;background:none!important
 }
}

/* Final mobile policy: no arrow pseudo-elements on ANY card links. */
@media(max-width:900px){
 html body main :is(.portfolio-card,.product-card,.project-card,.card,.linked-card)
 a::before,
 html body main :is(.portfolio-card,.product-card,.project-card,.card,.linked-card)
 a::after{
  content:none!important;display:none!important;
  background:none!important;border:0!important;box-shadow:none!important
 }
}
