.ty-presence-section {
  padding-block: var(--ty-company-space);
  background: #fff;
  scroll-margin-top: 85px;
}
.ty-presence-heading { margin-bottom: clamp(20px, 3vw, 32px); }
.ty-presence-heading p:last-child { margin: 0; }
.ty-presence-section .ty-presence-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--ty-company-border);
  border-radius: 6px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.ty-presence-section .ty-presence-primary {
  border-color: var(--ty-company-accent);
  background: var(--ty-company-accent);
}
.ty-presence-section button.ty-presence-primary {
  -webkit-appearance: none;
  appearance: none;
  color: var(--ty-company-ink);
}
.ty-presence-play, .ty-presence-close {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ty-company-accent);
  color: #252624;
}
.ty-presence-play[hidden], .ty-presence-close[hidden], .ty-stock-strip .ty-presence-button[hidden] { display: none; }
.ty-presence-play:focus-visible, .ty-presence-close:focus-visible, .ty-stock-strip button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #252624;
}
.ty-presence-close { top: 8px; left: 8px; background: #22231fee; color: #fff; }
[data-ty-video].ty-presence-video-open .ty-presence-play { top: 8px; right: 8px; left: auto; transform: none; }
.ty-presence-ring {
  position: absolute;
  inset: -4px;
  width: 52px;
  height: 52px;
  visibility: hidden;
  pointer-events: none;
  fill: none;
  stroke-width: 3;
}
.ty-presence-video-open .ty-presence-ring { visibility: visible; }
.ty-presence-ring-track { stroke: #ffffff9e; }
.ty-presence-ring-progress {
  stroke: #ffc107;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--ty-video-remaining, 100);
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset .2s linear;
}
.ty-presence-video-loading .ty-presence-ring-progress {
  stroke-dasharray: 23 77;
  stroke-dashoffset: 0;
  animation: ty-presence-buffer .95s linear infinite;
}
@keyframes ty-presence-buffer {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}
.ty-presence-play .ty-presence-pause-icon, .ty-presence-video-playing .ty-presence-play-icon { display: none; }
.ty-presence-video-playing .ty-presence-play .ty-presence-pause-icon { display: block; }
.ty-presence-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding-top: 60px;
  background: #191a18;
}
.ty-presence-frame:empty { display: none; }
.ty-presence-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ty-stock-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 17px; }
.ty-stock-photo {
  position: relative;
  display: block;
  height: clamp(205px, 27vw, 330px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef0f3;
}
.ty-stock-photo img, .ty-news-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ty-stock-photo strong {
  position: absolute;
  bottom: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 11px;
  border-radius: 4px;
  background: #22231fee;
  color: #fff;
  font-size: 14px;
}
.ty-stock-photo .ty-presence-play { top: 14px; right: 14px; }
.ty-stock-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 16px;
  margin-top: 17px;
  padding: clamp(13px, 2.2vw, 21px);
  border: 1px solid var(--ty-company-border);
  border-radius: 8px;
  background: #F2F3F5;
  font-size: 14px;
}
.ty-stock-strip strong { display: block; color: var(--ty-company-gold); font-size: clamp(25px, 3.2vw, 40px); line-height: 1.1; }

.ty-presence-locations { background: #F2F3F5; }
.ty-location-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}
.ty-location-option {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}
.ty-location-map, .ty-location-side {
  min-height: 300px;
  border: 1px solid var(--ty-company-border);
  border-radius: 8px;
}
.ty-location-map {
  position: relative;
  isolation: isolate;
  background:
    repeating-linear-gradient(36deg, transparent 0 38px, #ffffffa6 38px 41px, transparent 41px 85px),
    repeating-linear-gradient(115deg, transparent 0 51px, #ffffffa6 51px 54px, transparent 54px 106px),
    #e5e8ec;
}
.ty-location-region, .ty-location-note {
  position: absolute;
  left: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fffffff0;
  font-size: 12px;
}
.ty-location-region { top: 14px; font-weight: 700; }
.ty-location-note { bottom: 14px; color: var(--ty-company-muted); }
.ty-location-line {
  position: absolute;
  z-index: -1;
  left: 23%;
  top: 59%;
  width: 45%;
  border-top: 2px dashed #9f8752;
  transform: rotate(-17deg);
  transform-origin: left center;
}
.ty-location-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #cdd2db;
  border-radius: 5px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ty-location-pin::before {
  width: 11px;
  height: 11px;
  border: 1px solid #ab7600;
  border-radius: 50% 50% 50% 0;
  background: var(--ty-company-accent);
  content: "";
  transform: rotate(-45deg);
}
.ty-pin-office { top: 57%; left: 17%; }
.ty-pin-stock { top: 28%; left: 60%; }
.ty-location-side { padding: clamp(13px, 2.4vw, 25px); background: #fff; }
.ty-location-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.ty-location-tabs label {
  display: grid;
  place-items: center;
  min-height: 38px;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--ty-company-border);
  border-radius: 5px;
  background: #F2F3F5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ty-location-side article { display: none; }
.ty-location-side h3 { font-size: clamp(22px, 2.5vw, 29px); }
.ty-location-side p { margin: 8px 0 19px; }
#ty-location-office:checked ~ .ty-location-side .ty-address-office,
#ty-location-stock:checked ~ .ty-location-side .ty-address-stock,
#ty-location-russia:checked ~ .ty-location-side .ty-address-russia { display: block; }
#ty-location-office:checked ~ .ty-location-side [for="ty-location-office"],
#ty-location-stock:checked ~ .ty-location-side [for="ty-location-stock"],
#ty-location-russia:checked ~ .ty-location-side [for="ty-location-russia"],
#ty-location-office:checked ~ .ty-location-map .ty-pin-office,
#ty-location-stock:checked ~ .ty-location-map .ty-pin-stock {
  border-color: var(--ty-company-accent);
  background: var(--ty-company-accent);
}
#ty-location-office:focus-visible ~ .ty-location-side [for="ty-location-office"],
#ty-location-stock:focus-visible ~ .ty-location-side [for="ty-location-stock"],
#ty-location-russia:focus-visible ~ .ty-location-side [for="ty-location-russia"],
.ty-news-arrow:focus-visible {
  outline: 2px solid var(--ty-company-gold);
  outline-offset: 3px;
}
.ty-location-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ty-company-muted);
  font-size: 13px;
}

#trusted-by { padding-bottom: 0; }
.ty-trusted-logos {
  --ty-logo-count: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--ty-logo-count) - 1) * 12px) / var(--ty-logo-count));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
}
.ty-trusted-logos::-webkit-scrollbar { display: none; }
.ty-trusted-logos.is-moving, .ty-trusted-logos.is-dragging { scroll-snap-type: none; }
.ty-trusted-logos.is-dragging { cursor: grabbing; user-select: none; }
@media (hover: hover) { .ty-trusted-logos:not(.is-dragging) { cursor: grab; } }
.ty-trusted-logos:focus-visible { outline: 2px solid var(--ty-company-gold); outline-offset: 3px; border-radius: 7px; }
.ty-trusted-logos li {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 106px;
  border: 1px solid var(--ty-company-border);
  border-radius: 7px;
  background: #fff;
  scroll-snap-align: start;
}
.ty-trusted-logos img { display: block; width: min(100%, 150px); height: 100px; object-fit: contain; pointer-events: none; }
@media (min-width: 580px) { .ty-trusted-logos { --ty-logo-count: 3; } }
@media (min-width: 720px) { .ty-trusted-logos { --ty-logo-count: 6; } }
@media (min-width: 1050px) { .ty-trusted-logos { --ty-logo-count: 8; } }

.ty-news-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ty-news-heading h2 { margin: 0; }
.ty-news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ty-news-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ty-company-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ty-company-ink);
}
.ty-news-arrow[hidden] { display: none; }
.ty-news-grid { display: grid; grid-template-columns: minmax(225px, .87fr) minmax(0, 2fr); align-items: stretch; gap: 16px; }
.ty-news-stories {
  display: grid;
  align-content: stretch;
  gap: 0;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ty-company-border);
  border-radius: 8px;
  background: #F2F3F5;
  list-style: none;
}
.ty-news-stories li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 11px; padding-block: 12px; }
.ty-news-stories li + li { border-top: 1px solid var(--ty-company-border); }
.ty-news-stories img { display: block; width: 72px; height: 58px; object-fit: cover; border-radius: 4px; }
.ty-news-stories small, .ty-news-video small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ty-news-stories small { color: var(--ty-company-gold); }
.ty-news-stories h3 { font-size: 15px; }
.ty-news-window { min-width: 0; overflow: hidden; overflow: clip; }
.ty-news-videos {
  --ty-news-gap: 12px;
  --ty-news-card-width: calc((100% - 2 * var(--ty-news-gap)) / 3);
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--ty-news-card-width);
  gap: var(--ty-news-gap);
  min-width: 0;
}
.ty-news-video {
  position: relative;
  display: flex;
  isolation: isolate;
  align-items: flex-end;
  min-width: 0;
  min-height: clamp(310px, 34vw, 438px);
  overflow: hidden;
  border-radius: 8px;
  background: #292a25;
}
.ty-news-video img { position: absolute; z-index: -2; inset: 0; }
.ty-news-video::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #1d1e1bf0 0%, #1d1e1b54 44%, transparent 76%);
  content: "";
}
.ty-news-video .ty-presence-play { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ty-news-video-title { padding: clamp(10px, 1.5vw, 18px); color: #fff; }
.ty-news-video-title small { color: #e9ebef; }
.ty-news-video-title h3 { font-size: clamp(16px, 1.55vw, 22px); }

.ty-news-desktop-ready { will-change: transform; }
.ty-news-video.ty-news-edge {
  position: absolute;
  inset-block: 0;
  width: var(--ty-news-card-width);
  min-height: 0;
}
.ty-news-edge-before { right: calc(100% + var(--ty-news-gap)); }
.ty-news-edge-after { left: calc(100% + var(--ty-news-gap)); }
.ty-news-desktop-sliding { animation: ty-news-desktop-slide 640ms cubic-bezier(.45, 0, .55, 1) both; }
@keyframes ty-news-desktop-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--ty-news-slide-x), 0, 0); }
}
@media (hover: hover) {
  .ty-presence-section .ty-presence-button:hover, .ty-news-arrow:hover { border-color: var(--ty-company-gold); background: #eef0f3; }
  .ty-presence-section .ty-presence-primary:hover, .ty-presence-play:hover { background: #e9ebef; }
  .ty-presence-close:hover { background: #40423c; }
  .ty-location-pin:hover, .ty-location-tabs label:hover { border-color: var(--ty-company-gold); }
}
@media (prefers-reduced-motion: reduce) {
  .ty-presence-ring-progress { transition: none; }
  .ty-presence-video-loading .ty-presence-ring-progress { animation: none; }
  .ty-news-desktop-sliding { animation-duration: 320ms; }
}
@media (max-width: 940px) {
  .ty-news-grid { grid-template-columns: minmax(0, 1fr); }
  .ty-news-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
  .ty-news-stories li:nth-child(2) { border-top: 0; }
}
@media (max-width: 640px) {
  .ty-stock-grid, .ty-location-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ty-stock-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-stock-strip .ty-presence-button { grid-column: 1 / -1; justify-self: start; }
  .ty-location-map { min-height: 220px; }
  .ty-location-side { min-height: 204px; }
  .ty-pin-office { left: 10%; }
  .ty-pin-stock { right: 9%; left: auto; }
  .ty-news-stories { grid-template-columns: minmax(0, 1fr); }
  .ty-news-stories li:nth-child(2) { border-top: 1px solid var(--ty-company-border); }
  .ty-news-videos {
    grid-auto-columns: 84%;
    overflow-x: auto;
    overflow-anchor: none;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }
  .ty-news-videos .ty-news-edge { display: none; }
  .ty-news-videos.ty-news-scrolling { scroll-snap-type: none; pointer-events: none; }
  .ty-news-video { min-height: 310px; scroll-snap-align: start; }
}
