/*
 * About / Лента времени
 * CSS clamp is enabled ONLY after the JS has created accessible "Читать"
 * buttons. With JavaScript disabled the FULL original timeline remains visible.
 */
body.about-page.tts-timeline-disclosures-active
  .years__year-block .year-item.tts-timeline-clamp .year-desc p:not(.tts-timeline-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

body.about-page .years__year-block .year-desc p.tts-timeline-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body.about-page .years__year-block .year-desc .tts-timeline-read-more {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: fit-content;
  min-height: 40px;
  padding: 0.62rem 1.10rem;
  margin: 0.95rem 0 0;
  background: #fff;
  border: 1px solid rgba(1, 13, 38, 0.15);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(1, 13, 38, 0.045);
  color: #010d26;
  font: 600 clamp(14px, 1.15rem, 18px)/1.3 'SF Pro Text', Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
body.about-page .years__year-block .year-desc .tts-timeline-read-more:hover {
  background: #f1f5fc;
  border-color: rgba(1, 13, 38, 0.3);
  color: #010d26;
}
body.about-page .years__year-block .year-desc .tts-timeline-read-more:focus-visible {
  outline: 2px solid #0066ff;
  outline-offset: 3px;
}
body.about-page .years__year-block .year-desc .tts-timeline-read-more::after {
  content: "";
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}
body.about-page .years__year-block .year-desc .tts-timeline-read-more[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

@media (max-width: 768px) {
  body.about-page.tts-timeline-disclosures-active
    .years__year-block .year-item.tts-timeline-clamp .year-desc p:not(.tts-timeline-expanded) {
    -webkit-line-clamp: 8;
  }
  body.about-page .years__year-block .year-desc .tts-timeline-read-more {
    font-size: clamp(14px, 1.05rem, 16px);
    min-height: 38px;
    margin-top: 0.65rem;
  }
}

/*
 * Customer contact request: keep full phone WITH extension and address on
 * one line. The HTML, employee names, numbers, mailto/tel links stay intact.
 * Desktop uses scaled rem sizing already established by the current theme.
 */
.footer .footer__top-block__right-item {
  min-width: 0;
}
.footer .footer__top-block__right-item__top-content > a.title {
  font-size: 3.3rem !important;
  white-space: nowrap !important;
}
.footer .footer__top-block__right-item__top-content > a.title[href^="tel:"] {
  font-size: 3rem !important;
}
.footer .footer__top-block__right-item__bottom-content {
  max-width: 100% !important;
}
.footer .footer__top-block__right-item__bottom-content .desc {
  font-size: 1.65rem !important;
  white-space: nowrap !important;
}
@media (max-width: 768px) {
  .footer .footer__top-block__right-item {
    width: 100% !important;
  }
  .footer .footer__top-block__right-item__top-content > a.title {
    font-size: clamp(16px, 5vw, 29px) !important;
  }
  .footer .footer__top-block__right-item__top-content > a.title[href^="tel:"] {
    font-size: clamp(16px, 4.8vw, 27px) !important;
  }
  .footer .footer__top-block__right-item__bottom-content .desc {
    font-size: clamp(15px, 4.4vw, 23px) !important;
  }
}
