/*
  RULATAM press component: media logo rail.
  Shared component CSS. No page-level main/geo-base dependency.
*/
#r-press-main {
  box-sizing: border-box;
  width: 100%;
  padding: var(--r-section-y, 68px) 0;
  background: var(--r-color-white, #ffffff);
  color: var(--r-color-blue, #1f2530);
  font-family: var(--r-font-body, Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  overflow: hidden;
}

#r-press-main *,
#r-press-main *::before,
#r-press-main *::after {
  box-sizing: border-box;
}

#r-press-main .r-press-main__inner {
  width: min(var(--r-container, 1200px), calc(100% - (var(--r-gutter, 40px) * 2)));
  max-width: var(--r-container, 1200px);
  margin-inline: auto;
  padding: 0;
}

#r-press-main .r-press-main__head {
  max-width: var(--r-editorial, 860px);
  margin: 0 0 48px;
}

#r-press-main .r-press-main__title {
  margin: 0;
}

#r-press-main .r-press-main__lead {
  max-width: 680px;
  margin: 18px 0 0;
}

#r-press-main .r-press-main__viewport {
  position: relative;
  margin-inline: calc(var(--r-gutter, 40px) * -1);
  padding-inline: var(--r-gutter, 40px);
  overflow: hidden;
}

#r-press-main .r-press-main__viewport::before,
#r-press-main .r-press-main__viewport::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  z-index: 2;
  width: 94px;
  pointer-events: none;
}

#r-press-main .r-press-main__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--r-color-white, #ffffff), rgba(255,255,255,0));
}

#r-press-main .r-press-main__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--r-color-white, #ffffff), rgba(255,255,255,0));
}

#r-press-main .r-press-main__logos {
  display: flex;
  align-items: center;
  gap: 38px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

#r-press-main .r-press-main__logos:active {
  cursor: grabbing;
}

#r-press-main .r-press-main__logos::-webkit-scrollbar {
  display: none;
}

#r-press-main .r-press-main__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 168px;
  min-height: 112px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  filter: grayscale(1);
  opacity: 0.56;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

#r-press-main .r-press-main__item:hover {
  opacity: 0.82;
  filter: grayscale(0.9);
  transform: translateY(-1px);
}

#r-press-main .r-press-main__logo {
  display: block;
  width: 100%;
  max-width: 168px;
  max-height: 108px;
  height: auto;
  object-fit: contain;
}

/* Press block — desktop styles (mobile overrides below in max-width:680px) */
.r-home-page #r-press-main {
  padding: 56px 0 60px;
  background: var(--r-color-white);
  overflow: hidden;
}
.r-home-page #r-press-main .r-press-main__inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 0;
}
.r-home-page #r-press-main .r-press-main__head {
  margin-bottom: 26px;
}
.r-home-page #r-press-main .r-press-main__viewport {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
  overflow: hidden;
}
.r-home-page #r-press-main .r-press-main__viewport::before,
.r-home-page #r-press-main .r-press-main__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}
.r-home-page #r-press-main .r-press-main__viewport::before {
  left: 0;
  width: 40px;
  background: linear-gradient(90deg, var(--r-color-white), rgba(255,255,255,0));
}
.r-home-page #r-press-main .r-press-main__viewport::after {
  right: 0;
  width: 72px;
  background: linear-gradient(270deg, var(--r-color-white) 0%, rgba(255,255,255,0.85) 35%, rgba(255,255,255,0) 100%);
}
.r-home-page #r-press-main .r-press-main__logos {
  display: flex;
  align-items: center;
  gap: 38px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 16px;
  cursor: grab;
}
.r-home-page #r-press-main .r-press-main__logos:active { cursor: grabbing; }
.r-home-page #r-press-main .r-press-main__logos::-webkit-scrollbar { display: none; }
.r-home-page #r-press-main .r-press-main__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 168px;
  min-height: 112px;
  min-width: 0;
  scroll-snap-align: start;
  filter: grayscale(1);
  opacity: 0.55;
}
.r-home-page #r-press-main .r-press-main__logo {
  display: block;
  width: 100%;
  max-width: 168px;
  max-height: 108px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 980px) {
  .r-home-page #r-press-main .r-press-main__item { flex-basis: 118px; min-height: 72px; }
  .r-home-page #r-press-main .r-press-main__logos { gap: 14px; padding-bottom: 12px; }
  .r-home-page #r-press-main .r-press-main__logo { max-width: 118px; max-height: 72px; }
}

/* Main-page mobile press polish moved from rulatam-main-federal.css. */
@media (max-width: 680px) {
  .r-home-page #r-press-main {
    padding: 56px 0 60px;
    background: #ffffff;
    overflow: hidden;
  }

  .r-home-page #r-press-main .r-press-main__inner {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
    padding: 0;
  }

  .r-home-page #r-press-main .r-press-main__head {
    margin-bottom: 26px;
  }

  .r-home-page #r-press-main .r-press-main__viewport {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
    overflow: hidden;
  }

  .r-home-page #r-press-main .r-press-main__viewport::before,
  .r-home-page #r-press-main .r-press-main__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
  }

  .r-home-page #r-press-main .r-press-main__viewport::before {
    left: 0;
    width: 20px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
  }

  .r-home-page #r-press-main .r-press-main__viewport::after {
    right: 0;
    width: 72px;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0) 100%);
  }

  .r-home-page #r-press-main .r-press-main__logos {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 8px;
  }

  .r-home-page #r-press-main .r-press-main__logos::-webkit-scrollbar {
    display: none;
  }

  .r-home-page #r-press-main .r-press-main__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 99px;
    min-width: 99px;
    min-height: 64px;
    scroll-snap-align: start;
    filter: grayscale(1);
    opacity: 0.58;
  }

  .r-home-page #r-press-main .r-press-main__logo {
    display: block;
    width: 100%;
    max-width: 86px;
    max-height: 49px;
    height: auto;
    object-fit: contain;
  }
}
