/* Локальний Montserrat Bold для заголовків сторінки «Про компанію». */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/Montserrat-Bold-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/Montserrat-Bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Секція напрямів діяльності лише там, де підключено модуль */
.tdc-about-directions {
  width: 100%;
  margin: 0;
  padding: 54px 0 46px;
  background: #1d1d24;
  color: #fff;
  overflow: hidden;
}

.tdc-about-directions__inner {
  width: min(1247px, calc(100% - 40px));
  margin: 0 auto;
}

.tdc-about-directions__title {
  margin: 0 0 38px;
  color: #fecc00;
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tdc-about-directions__companies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  margin-bottom: 34px;
}

.tdc-about-directions__company h3,
.tdc-about-directions__card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.tdc-about-directions__company p,
.tdc-about-directions__card p {
  margin: 0;
  color: #e5e5e7;
  font-size: 14px;
  line-height: 1.45;
}

.tdc-about-directions__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}

/* Під час перетягування повзунок рухається разом із курсором без затримки */
.tdc-about-directions.is-dragging .tdc-about-directions__viewport {
  scroll-behavior: auto;
  user-select: none;
}

.tdc-about-directions__viewport::-webkit-scrollbar {
  display: none;
}

.tdc-about-directions__track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
}

.tdc-about-directions__card {
  flex: 0 0 min(32vw, 374px);
  width: min(32vw, 374px);
}

.tdc-about-directions__card-link,
.tdc-about-directions__card-link:hover,
.tdc-about-directions__card-link:focus {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tdc-about-directions__image {
  position: relative;
  aspect-ratio: 1.32 / 1;
  margin-bottom: 16px;
  overflow: hidden;
  background: #111218;
}

.tdc-about-directions__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.tdc-about-directions__card:hover .tdc-about-directions__image img {
  transform: scale(1.025);
}

.tdc-about-directions__card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.tdc-about-directions__scrollbar {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: 10px;
  cursor: pointer;
  touch-action: none;
}

.tdc-about-directions__scrollbar::before {
  content: '';
  position: absolute;
  top: calc(50% - 2.5px);
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(217, 217, 217, .52);
  pointer-events: none;
}

.tdc-about-directions__scrollbar-thumb {
  position: relative;
  display: block;
  width: 33.333%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.tdc-about-directions__scrollbar-thumb::before {
  content: '';
  position: absolute;
  top: calc(50% - 2.5px);
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #fecc00;
  pointer-events: none;
}

.tdc-about-directions.is-dragging .tdc-about-directions__scrollbar-thumb {
  cursor: grabbing;
}

.tdc-about-directions__scrollbar.is-static {
  display: none;
}

@media (max-width: 700px) {
  .tdc-about-directions {
    padding: 40px 0 34px;
  }

  .tdc-about-directions__inner {
    width: min(100% - 28px, 1247px);
  }

  .tdc-about-directions__title {
    margin-bottom: 28px;
  }

  .tdc-about-directions__companies {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .tdc-about-directions__track {
    gap: 10px;
  }

  .tdc-about-directions__card {
    flex-basis: 86vw;
    width: 86vw;
    max-width: 420px;
  }
}

/* Історія компанії: графік відображається лише разом із модулем сторінки ABOUT */
.tdc-about-history {
  width: 100%;
  margin: 0;
  padding: 64px 0 70px;
  overflow: hidden;
  background: #fff;
  color: #38383b;
}

.tdc-about-history__inner {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.tdc-about-history__title {
  margin: 0 0 22px;
  color: #38383b;
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tdc-about-history__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #fecc00 #ececef;
  scrollbar-width: thin;
}

.tdc-about-history__chart {
  position: relative;
  width: 100%;
  min-width: 980px;
  height: 600px;
}

.tdc-about-history__milestones {
  display: none;
}

@media (max-width: 700px) {
  .tdc-about-history {
    padding: 38px 0 46px;
  }

  .tdc-about-history__inner {
    width: min(100% - 20px, 1360px);
  }

  .tdc-about-history__title {
    margin-bottom: 18px;
  }

  .tdc-about-history__viewport {
    overflow: hidden;
  }

  .tdc-about-history__chart {
    width: 100%;
    min-width: 0;
    height: clamp(300px, 82vw, 340px);
  }

  .tdc-about-history__milestones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .tdc-about-history__milestone {
    min-width: 0;
    padding: 10px 10px 11px;
    border-left: 3px solid #ffbd00;
    background: #f5f5f6;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }

  .tdc-about-history__milestone.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .tdc-about-history__milestone-year {
    display: block;
    margin-bottom: 4px;
    color: #38383b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
  }

  .tdc-about-history__milestone-text {
    margin: 0;
    color: #4a4a4f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  @media (prefers-reduced-motion: reduce) {
    .tdc-about-history__milestone {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* Досягнення компанії: блок продовжує сторінку ABOUT після графіка */
.tdc-about-achievements {
  width: 100%;
  margin: 0;
  padding: 58px 0 86px;
  overflow: hidden;
  background: #fff;
  color: #38383b;
}

.tdc-about-achievements__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.tdc-about-achievements__title {
  margin: 0 0 86px;
  color: #38383b;
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tdc-about-achievements__layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(430px, 540px);
  justify-content: space-between;
  gap: 80px;
}

.tdc-about-achievements__intro {
  max-width: 350px;
}

.tdc-about-achievements__intro p {
  margin: 0;
  color: #414146;
  font-size: 21.6px;
  line-height: 1.25;
}

.tdc-about-achievements__item p {
  margin: 0;
  color: #414146;
  font-size: 16px;
  line-height: 1.35;
}

.tdc-about-achievements__intro p + p {
  margin-top: 26px;
}

.tdc-about-achievements__intro strong {
  font-weight: 800;
}

.tdc-about-achievements__logos {
  display: grid;
  grid-template-columns: repeat(2, 149px);
  align-items: center;
  gap: 24px 52px;
  margin-top: 92px;
}

.tdc-about-achievements__logos img {
  display: block;
  width: auto;
  max-width: 149px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.tdc-about-achievements__item {
  padding: 27px 0 28px;
  border-top: 1px solid #636363;
}

.tdc-about-achievements__item:first-child {
  padding-top: 30px;
}

.tdc-about-achievements__item p + p {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .tdc-about-achievements__title {
    margin-bottom: 54px;
  }

  .tdc-about-achievements__layout {
    grid-template-columns: minmax(260px, 330px) minmax(380px, 1fr);
    gap: 50px;
  }

  .tdc-about-achievements__logos {
    grid-template-columns: repeat(2, minmax(0, 149px));
    gap: 22px 28px;
  }
}

@media (max-width: 700px) {
  .tdc-about-achievements {
    padding: 44px 0 54px;
  }

  .tdc-about-achievements__inner {
    width: 100%;
    padding: 0 14px;
  }

  .tdc-about-achievements__title {
    margin-bottom: 36px;
  }

  .tdc-about-achievements__layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .tdc-about-achievements__intro {
    max-width: none;
  }

  .tdc-about-achievements__logos {
    grid-template-columns: repeat(2, minmax(0, 99px));
    justify-content: start;
    margin-top: 42px;
  }

  .tdc-about-achievements__logos img {
    max-width: 99px;
    max-height: 48px;
  }

  .tdc-about-achievements__item p {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .tdc-about-achievements__logos {
    grid-template-columns: repeat(2, minmax(0, 89px));
    gap: 18px;
  }

  .tdc-about-achievements__logos img {
    max-width: 89px;
    max-height: 43px;
  }
}

/* Філії: окремий слайдер сторінки ABOUT, підготовлений для додавання наступних представництв */
.tdc-about-branches {
  --branches-yellow: #fdc400;
  --branches-bg: #1d1d24;
  width: 100%;
  margin: 0;
  padding: 62px 0 44px;
  overflow: hidden;
  background: var(--branches-bg);
  color: #fff;
}

.tdc-about-branches,
.tdc-about-branches * {
  box-sizing: border-box;
}

.tdc-about-branches__inner {
  width: min(1194px, calc(100% - 80px));
  margin: 0 auto;
}

.tdc-about-branches__title {
  margin: 0 0 72px;
  color: var(--branches-yellow);
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tdc-about-branches__stage {
  position: relative;
  width: 100%;
}

.tdc-about-branches__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.tdc-about-branches__slide {
  display: none;
  grid-template-columns: minmax(0, 645px) minmax(260px, 308px);
  justify-content: center;
  align-items: start;
  gap: 74px;
  width: 100%;
}

.tdc-about-branches__slide.is-active {
  display: grid;
  animation: tdc-branch-enter .48s ease both;
}

.tdc-about-branches__slide.is-entering-back {
  animation-name: tdc-branch-enter-back;
}

@keyframes tdc-branch-enter {
  from { opacity: 0; transform: translate3d(28px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tdc-branch-enter-back {
  from { opacity: 0; transform: translate3d(-28px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.tdc-about-branches__media-column {
  min-width: 0;
}

.tdc-about-branches__image {
  width: 100%;
  aspect-ratio: 645 / 409;
  overflow: hidden;
  border-radius: 8px;
  background: var(--branches-yellow);
}

.tdc-about-branches__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tdc-about-branches__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0;
  text-align: left;
}

.tdc-about-branches__details-content {
  width: min(100%, 260px);
}

.tdc-about-branches__details h3 {
  margin: 0;
  color: var(--branches-yellow);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.34;
}

.tdc-about-branches__details h3.tdc-about-branches__city--long {
  white-space: nowrap;
}

.tdc-about-branches__address {
  margin: 10px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.34;
  white-space: pre-line;
}

.tdc-about-branches__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.5px;
  min-height: 48px;
  margin-top: 17px;
}

.tdc-about-branches__indicator-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tdc-about-branches__number {
  color: var(--branches-yellow);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.tdc-about-branches__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 7.5px;
}

.tdc-about-branches__progress i {
  display: block;
  width: 37.5px;
  height: 4.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .28);
  transition: width .25s ease, background-color .25s ease;
}

.tdc-about-branches__progress i.is-active {
  width: 46.5px;
  background: var(--branches-yellow);
}

.tdc-about-branches__arrow {
  position: absolute;
  z-index: 3;
  top: 193px;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tdc-about-branches__arrow--prev {
  left: 0;
}

.tdc-about-branches__arrow--next {
  right: 0;
}

.tdc-about-branches__arrow span {
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.tdc-about-branches__arrow--prev span {
  border-right: 14px solid var(--branches-yellow);
}

.tdc-about-branches__arrow--next span {
  border-left: 14px solid var(--branches-yellow);
}

.tdc-about-branches__arrow:hover span,
.tdc-about-branches__arrow:focus-visible span {
  filter: brightness(1.13);
}

.tdc-about-branches__arrow:focus-visible {
  outline: 2px solid var(--branches-yellow);
  outline-offset: 3px;
}

.tdc-about-branches__slogan-picture {
  display: block;
}

.tdc-about-branches__slogan {
  display: block;
  width: min(680px, 64.5vw);
  height: auto;
  margin: 45px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .tdc-about-branches__slide.is-active {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .tdc-about-branches__inner {
    width: min(100% - 48px, 1020px);
  }

  .tdc-about-branches__slide {
    grid-template-columns: minmax(0, 62%) minmax(250px, 32%);
    gap: 46px;
    padding: 0 34px;
  }

  .tdc-about-branches__details h3 {
    font-size: 34px;
  }

  .tdc-about-branches__address {
    font-size: 20px;
  }

  .tdc-about-branches__arrow--prev {
    left: -7px;
  }

  .tdc-about-branches__arrow--next {
    right: -7px;
  }
}

@media (max-width: 760px) {
  .tdc-about-branches {
    padding: 45px 0 40px;
  }

  .tdc-about-branches__inner {
    width: min(100% - 28px, 645px);
  }

  .tdc-about-branches__indicator {
    gap: 7px;
    min-height: 32px;
  }

  .tdc-about-branches__number {
    font-size: 16px;
  }

  .tdc-about-branches__progress {
    gap: 5px;
  }

  .tdc-about-branches__progress i {
    width: 25px;
    height: 3px;
    border-radius: 2px;
  }

  .tdc-about-branches__progress i.is-active {
    width: 31px;
  }

  .tdc-about-branches__title {
    margin-bottom: 36px;
  }

  .tdc-about-branches__slide {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 0;
  }

  .tdc-about-branches__details {
    padding: 0 8px;
    text-align: left;
  }

  .tdc-about-branches__details-content {
    width: max-content;
    max-width: 100%;
  }

  .tdc-about-branches__details h3 {
    font-size: 32px;
  }

  .tdc-about-branches__details h3.tdc-about-branches__city--long {
    font-size: 30px;
  }

  .tdc-about-branches__address {
    font-size: 19px;
  }

  .tdc-about-branches__arrow {
    top: min(calc(31.7vw - 30px), 183px);
    width: 32px;
    height: 42px;
    border-radius: 3px;
    background: rgba(29, 29, 36, .68);
  }

  .tdc-about-branches__arrow--prev {
    left: 5px;
  }

  .tdc-about-branches__arrow--next {
    right: 5px;
  }

  .tdc-about-branches__slogan {
    width: min(80%, 680px);
    margin-top: 40px;
  }
}

/* Розкладка для реальних ultrawide/4K моніторів. Секції стають просторішими,
   але не розтягуються до країв великого фізичного екрана. */
@media (min-width: 2400px) and (min-resolution: 0.75dppx) {
  .tdc-about-directions__inner {
    width: min(1560px, calc(100% - 96px));
  }

  .tdc-about-directions__companies {
    gap: clamp(72px, 4vw, 110px);
  }

  .tdc-about-directions__company h3,
  .tdc-about-directions__card h3 {
    font-size: 18px;
  }

  .tdc-about-directions__company p,
  .tdc-about-directions__card p {
    font-size: 15px;
  }

  .tdc-about-directions__card {
    flex-basis: min(22vw, 400px);
    width: min(22vw, 400px);
  }

  .tdc-about-history__inner {
    width: min(1680px, calc(100% - 96px));
  }

  .tdc-about-history__chart {
    height: 640px;
  }

  .tdc-about-achievements__inner {
    max-width: 1400px;
  }

  .tdc-about-achievements__layout {
    grid-template-columns: minmax(360px, 420px) minmax(500px, 620px);
    gap: clamp(80px, 5vw, 120px);
  }

  .tdc-about-achievements__intro {
    max-width: 400px;
  }

  .tdc-about-achievements__item p {
    font-size: 17px;
  }

  .tdc-about-branches__inner {
    width: min(1360px, calc(100% - 120px));
  }

  .tdc-about-branches__slide {
    grid-template-columns: minmax(0, 720px) minmax(300px, 340px);
    gap: clamp(74px, 4vw, 90px);
  }

  .tdc-about-branches__slogan {
    width: min(720px, 42vw);
  }
}

@media (max-width: 760px) {
  .tdc-about-directions__title,
  .tdc-about-history__title,
  .tdc-about-achievements__title,
  .tdc-about-branches__title {
    font-size: 32px;
  }
}
